• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Entity Bean deployment problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic