Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Tomcat 5.5 nor litewebserver working with xerces

843834Nov 5 2004 — edited Jan 26 2006
Hi,

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.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 23 2006
Added on Nov 5 2004
5 comments
146 views