Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet does not run

 
Jianliang Xu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bill
 
Jianliang Xu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it! Thanks for your help.
Jianliang Xu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic