*
The moose likes Servlets and the fly likes Error loading WebappClassLoader   delegate: false Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error loading WebappClassLoader   delegate: false " Watch "Error loading WebappClassLoader   delegate: false " New topic
Author

Error loading WebappClassLoader delegate: false

elay Raja
Greenhorn

Joined: Jun 10, 2008
Posts: 27
If i give the url for example http://IPName/Servlet


then i 'm getting the error in log which is shown below.
though i had specified the servlet in web.xml


java.lang.ClassNotFoundException: com.XXX.YYY.Servlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.catalina.core.StandardWrapper$1.run(StandardWrapper.java:1077)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1073)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
[Servlet] - Allocate exception for servlet ervlet
java.lang.ClassNotFoundException: XXXX.YYYY.Servlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.catalina.core.StandardWrapper$1.run(StandardWrapper.java:1077)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1073)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)

please help me to resolve this error ....
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 813

Originally posted by elay Raja:
If i give the url for example http://IPName/Servlet



What is IPName? Can you be a little more specific?


Regards, Sud.
SCJP 5 ScjpFAQ JLS
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Originally posted by elay Raja:
then i 'm getting the error in log which is shown below.
though i had specified the servlet in web.xml


java.lang.ClassNotFoundException: com.XXX.YYY.Servlet

You need to add the mentioned class to the classpath. Loose classes are to be placed in /WEB-INF/classes and JAR files in /WEB-INF/lib.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Oh, can you also please elaborate a bit more about the topic title? This sounds very like that you're facing this problem only after changing some setting to false or so.
elay Raja
Greenhorn

Joined: Jun 10, 2008
Posts: 27
Let me explain now.....

I'm trying to upload a file from flash to servlet. I had written the flash code using Flex & Actionscript.For server side,i written one servlet to accept the upload file. I had mentioned the above servlet in web.xml.If i click the upload button in flash,i'm getting 500 response from http.

Then i look in to log file, i got the above exception:-

I checked in browser by typing the http://192.1.1.1/UploadServlet

I am getting servlet is not available,though i specified them in xml.I hope you will be clear about my problem now..

please help me....

java.lang.ClassNotFoundException: com.XXX.YYY.Servlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.catalina.core.StandardWrapper$1.run(StandardWrapper.java:1077)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1073)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
[Servlet] - Allocate exception for servlet ervlet
java.lang.ClassNotFoundException: XXXX.YYYY.Servlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.catalina.core.StandardWrapper$1.run(StandardWrapper.java:1077)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1073)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
[ December 21, 2008: Message edited by: elay Raja ]
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
My 1st reply still stands: that class is missing in the classpath.
elay Raja
Greenhorn

Joined: Jun 10, 2008
Posts: 27
Yes.You are correct.
Thanks for your reply.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error loading WebappClassLoader delegate: false
 
Similar Threads
Classloading problem with servlet on Tomcat.
Error loading WebappClassLoader delegate: false
Spring Webservices: FrameworkServlet exception
Getting NullPointerException
Unable to execute Servlet