Andrew Eells wrote:
> If it helps it's also possible to deploy your war file with any name at all
> and have it deployed as the default context "/" - without the need to name
> it ROOT.war. 
> 
> The trick is to have it located outside the Tomcat directory and have the
> ROOT.xml context docBase point to it whilst setting path="". Exact details
> can be found here:

This is incorrect.  If you have an app located outside of the defined
webapps dir and are using the docBase attribute then merely naming the
context XML file "ROOT.xml" is enough.

You may consider the following: a normally deployed ROOT.war causes a
ROOT.xml to be created - it is this special name that locates the web
application at the path "/".

You may only use path="" when the context is defined in server.xml,
(when a ROOT.xml would not exist) - a practice which is very strongly
discouraged anyway.

p


> http://www.andrew-eells.com/2009/03/21/tomcat-root-war/ Tomcat ROOT.war
> deployment 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to