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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "changing a web application Watch "changing a web application New topic

changing a web application's URL

Frank Silbermann
Ranch Hand

Joined: Jun 06, 2002
Posts: 1384
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:


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?
jQuery in Action, 2nd edition
subject: changing a web application's URL
Similar Threads
deploying war file on WAS 3.5
Writing image into WAR?
Websphere 3.5, Log4j 1.2.7
Global JNDI access with EJB 3.1 and JBoss 6
Calling EJB in JSP