This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 1386
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
 
Similar Threads
Calling EJB in JSP
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