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

noClassDefFoundError: in WLS 6.1 when deployed as EAR

5 views
Skip to first unread message

Raj Kumar

unread,
Mar 27, 2002, 10:17:16 AM3/27/02
to

Hi Guys,
I am getting the noClassDefFoundError: when i deploy my application in WLS6.1sp1.
The same thing works fine when deployed in Exploded format.I even tried applying
ServicePack2 for WLS6.1; is this a known problem of WLS class Loader.
Can anyone pls advice me on this.
Thanks in Advance.
-Raj

Ker

unread,
Mar 28, 2002, 5:10:44 AM3/28/02
to
Hi all, I am getting this noClassDefFoundError: in WLS 6.1 when deployed as EAR. Same thing works very fine when deployed in exploded format.Please HELP.
STACK TRACE IS here...
Servlet failed with Exception
java.lang.NoClassDefFoundError: hermes/gnms/BuildBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:339)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:156)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)

Sudy Murthy

unread,
Mar 28, 2002, 9:28:06 AM3/28/02
to
Raj, is the class for which you are getting noClassDefFoundError not
is the war file but in a separate jar file? Also, are you packaging
your app into an EAR file? If so, if the jar is not included in the
war file, then you will need to do 2 things:
1. Specify the other jar file (that your war objs/servlets use) in
the war's manifest's class-path.
2. Make sure that your EAR file includes the other jar file.

Sudy

"Raj Kumar" <raj....@bt.com> wrote in message news:<3ca1e27c$1...@newsgroups.bea.com>...

Raj Kumar

unread,
Mar 28, 2002, 11:18:42 AM3/28/02
to

Sudy,
Thanks for the response.
The class file that is complained as noClassDefFoundError: is not in the WAR file
but it is in a JAR file,which is included in the WAR itself, & i am deploying
it as a EAR.
Friends Any idea? for the above scenario.
Thanks inAdvance.
The Error Trace is as below..

Servlet failed with Exception
java.lang.NoClassDefFoundError: hermes/gnms/BuildBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:339)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:156)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at hermes.gnms.admin.GNMSAdmin.gnmsVersion(GNMSAdmin.java:206)

Gaurav Khanna

unread,
Mar 28, 2002, 5:29:12 PM3/28/02
to
Let the war file have in its manifest a classpath entry pointing to the jar
file containing this class.
Somthing like:
Class-Path: abc.jar.

"Raj Kumar" <raj....@bt.com> wrote in message

news:3ca34262$1...@newsgroups.bea.com...

Raj Kumar

unread,
Apr 2, 2002, 4:09:46 AM4/2/02
to
Hi all,
I am getting this noClassDefFoundError: in WLS 6.1 when deployed as EAR. Same thing works very fine when deployed in exploded format.
The class file that is complained as noClassDefFoundError: is not in the WAR file but it is in a JAR file,which is included in the WAR itself, & i am deploying it as a EAR.
Please HELP.
STACK TRACE IS here... Servlet failed with Exception java.lang.NoClassDefFoundError: hermes/gnms/BuildBase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:339) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:156) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:290) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
0 new messages