It's not a secret anymore!
The moose likes Tomcat and the fly likes Servlet path problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Servlet path problem" Watch "Servlet path problem" New topic

Servlet path problem

michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
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

Joined: Mar 22, 2000
Posts: 13027
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.
I agree. Here's the link:
subject: Servlet path problem
It's not a secret anymore!