Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Tony Evans
Ranch Hand
Posts: 598
  • 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 contains

Manifest-Version: 1.0

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


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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!