|
Subject:
|
servlet calls saxon
|
|
Posted By:
|
Tomi
|
Post Date:
|
8/30/2006 4:23:22 AM
|
Hello everyone,
I'm working on a servlet that has to call saxon in order to apply and xslt file to an xml file.My servlet is working perfectly with Netbeans but I have to make it work in Eclipse where I get the following error messages:
java.lang.NoClassDefFoundError: net/sf/saxon/TransformerFactoryImpl java.lang.Class.getDeclaredConstructors0(Native Method) java.lang.Class.privateGetDeclaredConstructors(Unknown Source) java.lang.Class.getConstructor0(Unknown Source) java.lang.Class.newInstance0(Unknown Source) java.lang.Class.newInstance(Unknown Source) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Unknown Source
At first I thought it was a problem of the JVM but I included in the Library folder of my project both jre 1.5 and jdk 1.5 and didnt make any improvments.
Any ideas?
Thanks in advance.
Tomi.
|
|
Reply By:
|
mhkay
|
Reply Date:
|
8/30/2006 6:35:59 AM
|
The message means that the saxon8.jar file isn't on your classpath. But I'm not sure what this means you have to do in Eclipse terms - I think it has its own way of managing the classpath.
Michael Kay http://www.saxonica.com/ Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
|