File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang. NoClassDefFoundError when trying to load a class in my war file.

 
Tony Evans
Ranch Hand
Posts: 597
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a ear file which contains a war file webservice, in my war file I have a application
AntiVirusProcess which calls another class test.class
inside a jar file config.jar The war file manifest.mf contains

Manifest-Version: 1.0

Name: WEB-INF/classes/ language_builtins/ lang/ArrayOfStringCodec.class

Name: META-INF/MANIFEST.MF

Name: AntiVirus_client.jar

Name: WEB-INF/classes/ language_builtins/lang/holders/ ArrayOfStringHolder.class

Name: WEB-INF/web.xml

Name: WEB-INF/lib/config.jar

Name: WEB-INF/web-services.xml

Name: WEB-INF/lib/middleware_EJB.jar

Name: WEB-INF/classes/uk/gov/ir/ eric/webservices/ antivirus/AntiVirusProcess.class

The config.jar is under WEB-INF/lib/

But I still get this exception when I call test inside my code

javax.xml.rpc. soap.SOAP FaultException:
Exception during processing:
java.lang.NoClass DefFoundError:
uk/gov/ir/eric/ webservices /antivirus/test

Thanks for any help Tony
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic