Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet path problem

 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I currently use the tomcat in java webservice developer pack 1_0_01 and having some difficulties getting servlet to run. I tried to set the mapping in the web.xml file and gives the 404 resource not found problem. I put these files in packages.
I only can able to run servlet through the invoker servlet ie the target is MyProj/servlet/classname. Is there anything that i am missing here? Sometimes the web.xml have difficulties refreshing although i change its content but still it doesn't change. Is there a way to refresh this web.xml?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you read the Invoker servlet FAQ.
If you change web.xml you should stop and restart Tomcat to be sure.
The sequence of elements in web.xml can be critical - you should have the servlet API or some other reference on hand.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic