Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds


  Asked By: Madeline    Date: Jan 24    Category: Java    Views: 1124

I am getting a following error while running my webclient program using jwsdp(jax-rpc).

It is giving an error as like this:

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/org/apache/xe



2 Answers Found

Answer #1    Answered By: Dustin Dean     Answered On: Jan 24

It can't find the class DocumentImpl in Xerces. Make sure that the
Xerces jar file is in the expected library location, and that the jar
file you have contains com.sun.org.apache.xerces.internal.dom.DocumentImpl .

Answer #2    Answered By: Ruairidh Anderson     Answered On: Jan 24

I got the same problem when i use tomcat & Jdk1.5.

Actual Problem is Jdk1.5 have latest version of parsers,tomcat using older versions parses, if your application using latest version of parser new methods you may got these type of errors.


One solution is remove the jar files from Tomcat 5.0\common\endorsed
directory.I think this solution is solve your problem.

Didn't find what you were looking for? Find more on NoClassDefFoundError Or get search suggestion and latest updates.