aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Servlet path problem" Watch "Servlet path problem" New topic
Author

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
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet path problem
 
Similar Threads
Tomcat 5.5.6 : How to deploy and run JSP and Servlets
Init parameters
Running servlet in Tomcat
Deployment Descriptor
deployment descriptor