File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 1379
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?
It is sorta covered in the JavaRanch Style Guide.
subject: changing a web application's URL
Similar Threads
deploying war file on WAS 3.5
Calling EJB in JSP
Websphere 3.5, Log4j 1.2.7
Writing image into WAR?
Global JNDI access with EJB 3.1 and JBoss 6