my dog learned polymorphism*
The moose likes Servlets and the fly likes web.xml query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "web.xml query" Watch "web.xml query" New topic
Author

web.xml query

Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
hi all
Is it necessary to re-start Tomcat after making changes in web.xml.
The reason I am asking this is, the solution provider where I got to host my servlet/JSP doesnt give me permission to re-start the same. But when I make entrie to web.xml, for servlet, it works but servlet mapping doesnt work. As a result, I have to specify a path like : http://www.xyz.com/servlet/<servlet name>
whereas I want to achieve a path like :
http://www.xyz.com/<servlet name>
Is there anyway I can do this..??
Tia
MB


Malhar Barai
SOA & Java Book
Jason Davies
Greenhorn

Joined: Sep 18, 2003
Posts: 14
It is possible to configure Tomcat to automatically reload webapps if it thinks something has been changed. This is done by setting in the main Tomcat configuration file server.xml. So usually when you modify web.xml, changes will be updated.
As for the trouble with the mappings, perhaps your provider is using Apache + Tomcat and only forwards /servlet/* requests to Tomcat. It's best to contact them and ask.


<a href="http://www.netspade.com/" target="_blank" rel="nofollow">http://www.netspade.com/</a> - Web programming articles and tutorials.
Sanjeev Kaushik
Ranch Hand

Joined: Aug 01, 2002
Posts: 105
I think this link can help you.
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html
Cheers


Sanjeev Kaushik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web.xml query
 
Similar Threads
Replace URL
tomcat4
java. lang. IllegalArgumentException: Path does not start with a "/" character
struts url-pattern problem..
wants to hide the path of url