When I try to start my application that is an .ear in Weblogic 10.3 I get an error each time. However, if I start a .war application it works just fine. Here is the error I get for the .ear file. java.lang.NoClassDefFoundError: com/bea/wlw/runtime/core/bean/SLSBContainerBean
Do you think there could be something wrong wiht the .ear file? Any help would be greatly appreciated, I couldn't find much googling this issue.
####<Nov 13, 2008 2:34:14 PM PST> <Warning> <Deployer> <doleapp> <AdminServer> <[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1226615654475> <BEA-149078> <Stack trace for message 149004 java.lang.NoClassDefFoundError: com/bea/wlw/runtime/core/bean/SLSBContainerBean at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:338) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:291) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179) [ November 13, 2008: Message edited by: Jeff Kw ]
Hallo Jeff, I think nothing is wrong on your application unless for example you put in your ear some old libraries of WebLogic (i.e. weblogic.jar) but I don't see any reason to do that....
com/bea/wlw/runtime/core/bean/SLSBContainerBean is an internal class used by WebLogic to manage stateless session bean componen. As Javadoc says regarding the NoClassDefFoundError :
Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of the class could be found.
The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found.
So, at the end, a WebLogic class weblogic.utils.classloaders.GenericClassLoader.defineClass is trying to load / define com.bea.wlw.runtime.core.bean.SLSBContainerBean and this class definition is not found so I think you can do nothing with that....check the thing I mentioned before (old libraries) and check your WebLogic installation.