Tomcat 5.5 nor litewebserver working with xerces
843834Nov 5 2004 — edited Jan 26 2006Hi,
I can't figure this one out!
I am new to web services, and to get into it, have found 2 example servlets (client / server) that communicate using SAAJ. I have tried using the servlets in both tomcat 5.5 and lws.
They compile successfully, but when the client is invoked, I get the following error:
java.lang.NoClassDefFoundError:
com/sun/org/apache/xerces/internal/dom/DocumentImpl
The really odd part is when I extracted xercesImpl.jar to see what was going on, the 'internal' dir does not exist, and it is the same for past versions of xerces too, so no wonder the class cannot be found.
The code which causes the error is:
SOAPPart soappart = outgoingMessage.getSOAPPart();
I am sure my classpath is correct. I'm running Java 1.4.2 on xp pro.
If anyone knows what is going on, please please help!
ps I get the same error with other example servelts too, so it's not the servlets that are the problem.