• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

EJBHome problem

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting the following problem in the log file when server is started.
However I have the j2ee.jar file in my server classpath. How do i know if it(javax.ejb.EJBHome) is getting loaded??.
Pointers to this will be appreciated.
~ashish
WSVR0040E: addEjbModule failed for com.ibm.ejs.models.base.config.applicationserver.impl.EJBModuleRefImpl (desiredExecutionState: START) (uri: dhlgqs_ejb_new.jar)
java.lang.NoClassDefFoundError: javax/ejb/EJBHome
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.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 java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.ReloadableClassLoader.loadClass(ReloadableClassLoader.java:66)
at com.ibm.ws.classloader.ClassLoaderGroup.loadClass(ClassLoaderGroup.java:81)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:251)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
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 com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:415)
at com.ibm.ws.classloader.ClassLoaderGroup.findClass(ClassLoaderGroup.java:111)
at com.ibm.ws.classloader.ClassLoaderGroup.loadClass(ClassLoaderGroup.java:83)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:251)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.ReloadableClassLoader.loadClass(ReloadableClassLoader.java:66)
at com.ibm.ejs.container.BeanMetaData.loadExistedClass(BeanMetaData.java:2065)
at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java:466)
at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:945)
at com.ibm.ejs.container.EJSContainer.getHomeWrapperCommon(EJSContainer.java:680)
at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:606)
at com.ibm.ejs.container.EJSContainer.startBean(EJSContainer.java:585)
at com.ibm.ws.runtime.BeanHelper.startBean(BeanHelper.java:186)
at com.ibm.ws.runtime.EJBEngine.addEjbModule(EJBEngine.java:485)
at com.ibm.ws.runtime.Server.startModule(Server.java:636)
at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:334)
at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:362)
at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:911)
at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:527)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you explicitly add j2ee.jar to the classpath? If so, take it out! WebSphere already includes this on its classpath for deployment -- in general you should NEVER mess with the WebSphere classpaths.
Kyle
 
pappu pager
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx kyle,
i had it in the jvm setting classpath and bootclasspath....i've removed it now.....and all is working fine,...however j2ee.jar is included only in the firststeps.bat file so if i start the server using startserver.bat explicitly it used to give the error.....
~a
[ December 23, 2002: Message edited by: logged in ]
 
What are you saying? I thought you said that Santa gave you that. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic