• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing a web application's URL

 
Frank Silbermann
Ranch Hand
Posts: 1407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic