File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Servlet does not run Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Servlet does not run" Watch "Servlet does not run" New topic

Servlet does not run

Jianliang Xu

Joined: Oct 27, 2002
Posts: 3
Hi, I am a greenhorn of Java. Please help me.
I am using Tomcat as my servlet container, and I create a web application under the directory of
"$TomcatHome$/webapp". All the Jsps run well, but when I put a servlet under "/WEB-INF/classes" and run it, I meet an error: "The requested resource (/jsp10/servlet/srv_intro) is not available".
I have specified the context for this web application in server.xml.
Waiting for your help.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
There have been a number of disucssions of similar problems in the servlets forum in the past week, all related to configuration in web.xml - browse the last week or so.
Jianliang Xu

Joined: Oct 27, 2002
Posts: 3
Got it! Thanks for your help.
Jianliang Xu
I agree. Here's the link:
subject: Servlet does not run
It's not a secret anymore!