Unable to start an application due to NoClassDefFoundError
 Technote (troubleshooting)
 
Problem(Abstract)
Client has packaged everything needed by his application in the application ear file. The manifest file for the ejb and the war modules are modified correctly to point to common jars packaged at the root of the ear.

The following exception is seen in the systemout.log file:

4/13/06 15:51:44:337 EDT¨ 0000000a ServletWrappe E SRVE0100E:
Did not realize init() exception thrown by servlet PreLoader:
java.lang.NoClassDefFoundError: us/myState/state/agb/tiers/business/entities
/security/SeReportAssignmentsCargo
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1784)
at java.lang.Class.getMethod1(Class.java:2033)
at java.lang.Class.getMethod(Class.java:1076)
at us.tx.state.dhs.framework.factories.FwServiceFactory.
installService(Unknown Source)
 
Cause
The root cause of the problem is that client has specified some of the same jars in the java classpath. In the above stack trace class SeReportAssignmentsCargo was packaged and found in application and server classpaths
 
Resolving the problem
Remove the above class from the server classpath
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Classloader
Operating system(s): Windows
Software version: 6.0
Software edition:
Reference #: 1236833
IBM Group: Software Group
Modified date: May 2, 2006