wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying a WAR file as root context" Watch "Deploying a WAR file as root context" New topic

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

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
Mapping Virtual Directories in Jboss with Tomcat
some variable names not recognized?
[Naming convention] How to name this ...
final reference variables
Better JUnit Tests with PMD - free book chapter