You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Sean Laval <se...@uk.ibm.com> on 2004/11/04 15:46:58 UTC

ejb classloader problem




I have an EJB module that uses JCS deployed to a WebSphere Portal 5
application server. The JCS library is shipped as an EAR library. If the
application delegation mode is set to Parent_First I get the following
error when the ejb tries to start.

java.lang.NoClassDefFoundError: org/apache/jcs/access/CacheAccess
      at java.lang.Class.newInstance0(Native Method)
      at java.lang.Class.newInstance(Class.java(Compiled Code))
      at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:1321)
      at com.ibm.ejs.container.EJSContainer.getHomeWrapperCommon(EJSContainer.java:984)
      at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:907)
      at com.ibm.ejs.container.EJSContainer.startBean(EJSContainer.java:886)
      at com.ibm.ws.runtime.component.EJBContainerImpl.startBean(EJBContainerImpl.java:1255)
      at com.ibm.ws.runtime.component.EJBContainerImpl.install(EJBContainerImpl.java:988)
      at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:1462)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:415)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)
      at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:351)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:268)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:246)
      at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
      at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
      at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:126)
      at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
      at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
      at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
      at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
      at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
      at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

If I set the delegation mode to parent last the app will start but I am
reluctant to do that for various reasons, 1 of which is getting class cast
exceptions when looking up and casting ejb homes.

Can anyone help me please?

Regards,

Sean


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org