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

Re: Failed to load servlet :java.lang.NoClassDefFoundError

65 views
Skip to first unread message

rajal...@mail2engineer.com

unread,
Jul 13, 2005, 7:05:06 AM7/13/05
to
Hi
Thanks for responding.
Unfortunately I could not see anything posted in the reply message.
Can u Please send me again.

cheers
rajalakshmi

Ken Hygh

unread,
Jul 13, 2005, 6:29:17 AM7/13/05
to
The bold stuff is what's relevant here. Where is this class?
Ken

rajal...@mail2engineer.com wrote:
Hi !!  
When I try to deploy a set of .wars onto my websphere AS which constitutes my application in whole, the following exception is thrown to log file. 
Can anyone help letting me know the way I need to explore to fix the problem.
All the Class Loading modes in Application server and the web modules settings are set to default only.

From SystemOut.log:

[7/13/05 14:10:03:984 IST] 6fcfec15 WebGroup      E SRVE0020E: [Servlet Error]-[FrontDoor]: Failed to load servlet: java.lang.NoClassDefFoundError: Error while defining class: com.YYY.servlet.FrontDoor


This error indicates that the class: com.XXX.system.ServerEntryPoint
could not be located while defining the class: com.XXX.servlet.FrontDoor


This is often caused by having the class at a higher point in the classloader hierarchy
Dumping the current context classloader hierarchy:
    ==> indicates defining classloader
    *** indicates classloader where the missing class could have been found
==>[0] 
com.ibm.ws.classloader.CompoundClassLoader@4d78ec15
   Local ClassPath: E:\WebSphere\AppServer\installedApps\hd-rajalakshmir\builder_war.ear\builder.war\WEB-INF\classes;
   E:\WebSphere\AppServer\installedApps\hd-rajalakshmir\builder_war.ear\builder.war;
   Delegation Mode: PARENT_FIRST
   [1] com.ibm.ws.classloader.JarClassLoader@1297624085 Local Classpath:  Delegation mode: PARENT_FIRST
   [2] com.ibm.ws.classloader.ExtJarClassLoader@418147351 Local ClassPath: E:\WebSphere\AppServer\lib\app;  Delegation Mode: PARENT_LAST
   [3] com.ibm.ws.classloader.ProtectionClassLoader@67d4ec17
   [4] com.ibm.ws.bootstrap.ExtClassLoader@3d0dec16
   [5] sun.misc.Launcher$AppClassLoader@3d09ac16
   [6] sun.misc.Launcher$ExtClassLoader@3d05ac16
---Original exception---
java.lang.NoClassDefFoundError: com/XXX/system/ServerEntryPoint
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
	at 

[snip]

rajal...@mail2engineer.com

unread,
Jul 13, 2005, 5:58:33 AM7/13/05
to

From SystemOut.log:

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:407)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:357)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.beans.Beans.instantiate(Beans.java:201)
at java.beans.Beans.instantiate(Beans.java:62)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:652)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:172)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.<init>(WebAppRequestDispatcherInfo.java:59)
at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1462)
at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1421)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:268)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)


Ken Hygh

unread,
Jul 13, 2005, 7:42:59 AM7/13/05
to
Ken Hygh wrote:

> The bold stuff is what's relevant here. Where is this class?
> Ken
>
> rajal...@mail2engineer.com wrote:
>
>>Hi !!
>>When I try to deploy a set of .wars onto my websphere AS which constitutes my application in whole, the following exception is thrown to log file.
>>Can anyone help letting me know the way I need to explore to fix the problem.
>>All the Class Loading modes in Application server and the web modules settings are set to default only.
>>
>>From SystemOut.log:
>>
>>[7/13/05 14:10:03:984 IST] 6fcfec15 WebGroup E SRVE0020E: [Servlet Error]-[FrontDoor]: Failed to load servlet: java.lang.NoClassDefFoundError: Error while defining class: com.YYY.servlet.FrontDoor
>>
>>

>>This error indicates that the class: *com.XXX.system.ServerEntryPoint*
>>
>>
The above is the class that isn't found.

>>could not be located while defining the class: com.XXX.servlet.FrontDoor
>>
>>
>>This is often caused by having the class at a higher point in the classloader hierarchy
>>Dumping the current context classloader hierarchy:
>> ==> indicates defining classloader
>> *** indicates classloader where the missing class could have been found
>>==>[0]
>>com.ibm.ws.classloader.CompoundClassLoader@4d78ec15
>> Local ClassPath: E:\WebSphere\AppServer\installedApps\hd-rajalakshmir\builder_war.ear\builder.war\WEB-INF\classes;
>> E:\WebSphere\AppServer\installedApps\hd-rajalakshmir\builder_war.ear\builder.war;
>> Delegation Mode: PARENT_FIRST
>> [1] com.ibm.ws.classloader.JarClassLoader@1297624085 Local Classpath: Delegation mode: PARENT_FIRST
>> [2] com.ibm.ws.classloader.ExtJarClassLoader@418147351 Local ClassPath: E:\WebSphere\AppServer\lib\app; Delegation Mode: PARENT_LAST
>> [3] com.ibm.ws.classloader.ProtectionClassLoader@67d4ec17
>> [4] com.ibm.ws.bootstrap.ExtClassLoader@3d0dec16
>> [5] sun.misc.Launcher$AppClassLoader@3d09ac16
>> [6] sun.misc.Launcher$ExtClassLoader@3d05ac16
>>---Original exception---

>>java.lang.NoClassDefFoundError: *com/XXX/system/ServerEntryPoint*

0 new messages