Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WAS 5.1 EJB Deployment

75 views
Skip to first unread message

madhura...@gmail.com

unread,
Oct 12, 2006, 7:20:56 AM10/12/06
to
Hi,

I am migrating a web application from WAS 3.5 to WAS 5.1. I have imported the EJBs in the EJB folder and added the EJB project to the Enterprise Application Project and finally added this EAR to Websphere server (test environment ) 5.1. However on starting the server ? this is the exception log which I am getting:

[10/12/06 15:42:55:699 IST] 3ef88def EJBContainerI E WSVR0040E: addEjbModule failed for PPMISBean.jar [class com.ibm.ws.runtime.component.DeployedModuleImpl]

java.lang.NoClassDefFoundError: com/ibm/ejs/container/EJSWrapper

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))

at java.net.URLClassLoader.defineClass(URLClassLoader.java(Compiled Code))

at java.net.URLClassLoader.access$500(URLClassLoader.java(Inlined Compiled Code))

at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java(Compiled Code))

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))

at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java(Compiled Code))

at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))

at com.ibm.rmi.util.Utility.loadClassForClass(Utility.java:563)

at com.ibm.rmi.util.Utility.loadTieClass(Utility.java:422)

at com.ibm.rmi.util.Utility.loadTie(Utility.java:361)

at com.ibm.rmi.javax.rmi.PortableRemoteObject.exportObject(PortableRemoteObject.java:107)

at javax.rmi.PortableRemoteObject.exportObject(PortableRemoteObject.java:106)

at com.ibm.ejs.oa.EJSOAImpl.registerServant(EJSOAImpl.java:178)

at com.ibm.ejs.oa.EJSOAImpl.registerServant(EJSOAImpl.java:147)

at com.ibm.ejs.container.EJSWrapperCommon.registerServant(EJSWrapperCommon.java:172)

at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:939)

at com.ibm.ejs.container.EJSContainer.startBean(EJSContainer.java:913)

at com.ibm.ws.runtime.component.EJBContainerImpl.startBean(EJBContainerImpl.java:1301)

at com.ibm.ws.runtime.component.EJBContainerImpl.install(EJBContainerImpl.java:1034)

at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:1508)

at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:505)

at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:808)

at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)

at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)

at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:299)

at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:256)

at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)

at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)

at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:128)

at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)

at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)

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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)

at java.lang.reflect.Method.invoke(Method.java:386)

at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:105)

at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)

[10/12/06 15:42:55:746 IST] 3ef88def EJBContainerI I WSVR0041I: Stopping EJB jar: PPMISBean.jar

[10/12/06 15:42:55:824 IST] 3ef88def EJBContainerI E WSVR0042E: Unable to stop PPMISEar#PPMISBean.jar#ModelEJBService: unknown bean home name - PPMISEar#PPMISBean.jar#ModelEJBService

[10/12/06 15:42:55:840 IST] 3ef88def EJBContainerI E WSVR0042E: Unable to stop PPMISEar#PPMISBean.jar#PartnerSetupService: unknown bean home name - PPMISEar#PPMISBean.jar#PartnerSetupService

[10/12/06 15:42:55:840 IST] 3ef88def EJBContainerI E WSVR0042E: Unable to stop PPMISEar#PPMISBean.jar#RefEJBService: unknown bean home name - PPMISEar#PPMISBean.jar#RefEJBService

[10/12/06 15:42:55:871 IST] 3ef88def EJBContainerI I WSVR0043E: Unbind failed for ejb/com/americanexpress/ppmis/dealsetup/ejb/DealEJBServiceHome: name = ejb/com/americanexpress/ppmis/dealsetup/ejb/DealEJBServiceHome: first name component of ejb/com/americanexpress/ppmis/dealsetup/ejb is not found. Original exception : org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0

[10/12/06 15:42:55:871 IST] 3ef88def EJBContainerI I WSVR0043E: Unbind failed for ejb/com/americanexpress/ppmis/dealsetup/ejb/ModelEJBServiceHome: name = ejb/com/americanexpress/ppmis/dealsetup/ejb/ModelEJBServiceHome: first name component of ejb/com/americanexpress/ppmis/dealsetup/ejb is not found. Original exception : org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0

[10/12/06 15:42:55:871 IST] 3ef88def EJBContainerI I WSVR0043E: Unbind failed for ejb/com/americanexpress/ppmis/dealsetup/ejb/PartnerSetupServiceHome: name = ejb/com/americanexpress/ppmis/dealsetup/ejb/PartnerSetupServiceHome: first name component of ejb/com/americanexpress/ppmis/dealsetup/ejb is not found. Original exception : org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0

[10/12/06 15:42:55:871 IST] 3ef88def EJBContainerI I WSVR0043E: Unbind failed for ejb/com/americanexpress/ppmis/dealsetup/ejb/RefEJBServiceHome: name = ejb/com/americanexpress/ppmis/dealsetup/ejb/RefEJBServiceHome: first name component of ejb/com/americanexpress/ppmis/dealsetup/ejb is not found. Original exception : org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0

[10/12/06 15:42:55:871 IST] 3ef88def DeployedAppli W WSVR0206E: Module, PPMISBean.jar, of application, PPMISEar.ear/deployments/PPMISEar, failed to start

[10/12/06 15:42:55:933 IST] 3ef88def ApplicationMg W WSVR0101W: An error occurred starting, PPMISEar

The class indicated as not defined- EJBWrapper is present in the runtime.jar which is added to the EJB project. Let me know if you can think of any solution to this problem.

Regards,

Madhura

Randy Schnier

unread,
Oct 12, 2006, 2:59:39 PM10/12/06
to
EJSWrapper is part of the WAS runtime...possible cause for this might be
an install that didn't go right.

adw...@pulpjava.com

unread,
Oct 13, 2006, 9:37:23 AM10/13/06
to

Is the jar file packaged inside of the ear, or is it simply placed on
the classpath. We typically did the latter with WebSphere 3.5, but you
need to the the former with WAS 5.1 and WebSphere 6.1

Here's a little tutorial on J2EE packaging, and
ClassNotFoundExceptions, and how you can resolve them. It all has to do
with classloaders in WebSphere and J2EE.

http://www.technicalfacilitation.com/get.php?link=classloading

Cheers!

-Cameron McKenzie

Author of What is WebSphere?

Check out my new SCJA certification guides and mock exam questions at
www.scja.com

www.pulpjava.com www.scja.com www.technicalfacilitation.com

0 new messages