NoClassDefFoundError for EJB in stdout logs of WebSphere Application Server V4.0.3 through V4.0.6
 Technote (FAQ)
 
Problem
You receive the following EJB-related error occuring in the stdout file of WebSphere Application Server V4.0.3 through V4.0.6:

[8/23/03 4:48:25:390 EDT] 65f46e EJBEngine X WSVR0040E: addEjbModule failed for com.ibm.ejs.models.base.config.applicationserver.impl.EJBModuleRefImpl (desiredExecutionState: START) (uri: release_ejb.jar)
java.lang.NoClassDefFoundError: com/mycompany/myclass/EBException
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:873)
at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContain(EJSContainer..
...
 
Cause
This problem can be caused by classloader policy incorrectly set to MODULE, instead of APPLICATION.
 
Solution
Change the classloader policy to APPLICATION and retest.
 
 
Historical Number
68610
278
000
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server
Operating system(s): HP-UX
Software version: 4.0.7
Software edition:
Reference #: 1121442
IBM Group: Software Group
Modified date: Oct 31, 2004