Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity Bean deployment problem  RSS feed

 
Jim Kline
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm having a problem deploying an Entity Bean and could really use some help. I created an entity bean called Tauthlevel in WSAD 5.1.2. It works fine on my desktop. I create the ear file using an Ant script but when I try to deploy the entity bean on the server I get the following error:

7/19/06 12:05:41:878 EDT] 1a33662 EJBContainerI I WSVR0207I: Preparing to start EJB jar: spectrumApp.jar
[7/19/06 12:05:46:922 EDT] 1a33662 BeanMetaData E CNTR0075E: The user-provided class "com.aig.spectrum.specapp.admin.EJSCMPTauthlevelHomeBean_1e88c20b" needed by the EnterpriseBean could not be found or loaded.
[7/19/06 12:05:47:081 EDT] 1a33662 EJBContainerI E WSVR0209E: Unable to prepare EJB jar spectrumApp.jar [class com.ibm.ws.runtime.component.DeployedModuleImpl], enterprise bean com.ibm.etools.ejb.impl.ContainerManagedEntityImpl(Tauthlevel) (reentrant: false) (version: 2.x, abstractSchemaName: Tauthlevel)
java.lang.ClassNotFoundException: com.aig.spectrum.specapp.admin.EJSCMPTauthlevelHomeBean_9486dbfe
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:399)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:312)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at com.ibm.ejs.container.BeanMetaData.loadExistedClass(BeanMetaData.java:2644)
at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java:887)
at com.ibm.ws.runtime.component.EJBContainerImpl.createBeanMetaData(EJBContainerImpl.java:1038)
at com.ibm.ws.runtime.component.EJBContainerImpl.createModuleMetaData(EJBContainerImpl.java:830)
at com.ibm.ws.runtime.component.EJBContainerImpl.createMetaData(EJBContainerImpl.java:1575)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createFactoryMetaData(MetaDataMgrImpl.java:115)
at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:159)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:350)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:578)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:311)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:268)
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:152)
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:246)
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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:222)
at java.lang.Thread.run(Thread.java:534)



I know that the "EJSCMP" classes are created when I generate deployment code in WSAD. But they are included in the ear file and are not being created when the ear file is deployed on the server. There are other old entity beans in the ear file that are deployed correctly. I checked the ejb-jar.xml, ibm-ejb-jar-bnd.xmi, and ibm-ejb-jar-ext.xmi and all the entries appear correct and look the same as our other entity beans. Any help would be greatly appreciated!!
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you also need to have an application.xml file in your ear deployment?

Is this bean in a different jar file within your ear file, such that it might be loaded into a different class loader?

Mark
 
Jim Kline
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, there is an application.xml included in the ear file. These new classes are included in the same jar file as the rest of the Session and Entity beans. Any other suggestions??
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!