wood burning stoves 2.0*
The moose likes Tomcat and the fly likes changing a web application's URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "changing a web application Watch "changing a web application New topic
Author

changing a web application's URL

Frank Silbermann
Ranch Hand

Joined: Jun 06, 2002
Posts: 1390
When I drop a .war file into the webapp folder of Tomcat 6, the URL that the user enters to access the web application is of the form:

http://tomcatServer:port/A/B

where A is the name of the .war file, and B is the url specified in the web applications web.xml file.

How do I configure the application so that part A is not the name of the .war file, but something simpler? For example, my builder appends a version number to the .war's filename, but I don't want users to have to change their bookmark everytime I update the web application.

Is there something I can put into the web application's context.xml file to override the use of the .war filename?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: changing a web application's URL