aspose file tools*
The moose likes Tomcat and the fly likes Deploying a WAR file as root context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying a WAR file as root context" Watch "Deploying a WAR file as root context" New topic
Author

Deploying a WAR file as root context

Michael J. Makunas
Ranch Hand

Joined: Mar 11, 2002
Posts: 37
This should be fairly trivial, but for some reason I can't figure it out. How (in Tomcat 5.5) do I deploy foo.war so that it's URL is www.bar.com instead of www.bar.com/foo/ ?

Thanks in advance....
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

One way would be to rename it ROOT.war, delete the current ROOT directory, and then deploy it.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying a WAR file as root context
 
Similar Threads
final reference variables
[Naming convention] How to name this ...
Mapping Virtual Directories in Jboss with Tomcat
Better JUnit Tests with PMD - free book chapter
some variable names not recognized?