File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes servlet exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet exception" Watch "servlet exception" New topic
Author

servlet exception

Medhat Menon
Greenhorn

Joined: Nov 29, 2006
Posts: 4
This is the Exception thrown when I sent a request to one of the servlets deployed to Tomcat. Im not sure where Ive done wrong. Please help!

javax.servlet.ServletException: Wrapper cannot find servlet class or a class it depends on
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)


root cause

java.lang.ClassNotFoundException:
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
[ November 29, 2006: Message edited by: Bear Bibeault ]
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

"giraffe,"

Welcome to JavaRanch!

Please revise your display name to meet the JavaRanch Naming Policy. To maintain the friendly atmosphere here at the ranch, we like folks to use real (or at least real-looking) names, with a first and a last name.

You can edit your display name here. Thank you for your prompt attention!

Meanwhile, I'll move this post to the Servlets forum for you.

-Marc


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
The container could not find your servlet class. Do you have them in the right place? Post your directory structure here and lets see where you have placed the servlet classes.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
As Bousum mentioned.Your class files are not in the classes folder within WEB-INF and it should be placed in the directories according to the package name of the class file.


Rahul Bhattacharjee
LinkedIn - Blog
Medhat Menon
Greenhorn

Joined: Nov 29, 2006
Posts: 4
Thanks for the replies.

As I figured it out, the web.xml doesnt have an entry for the servlet name. Hence the exception.

- Medhat
 
GeeCON Prague 2014
 
subject: servlet exception