tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: AW: Changing the ROOT application in Tomcat 6.0.18 on Linux
Date Thu, 16 Oct 2008 15:31:17 GMT
Maik Schumacher wrote:
> - Having a changed 'appBase' in the 'server.xml' pointing for example to
> 'c:/test/www' on a Windows machine
> - Deploying a Web application as a WAR file with the name' testweb.war'
> putting it in the folder 'c:/test/www'
> - Now the goal here is to access the Web application with
>   http://localhost:8080
>   and not with
>   http://localhost:8080/testweb

You can't do exactly that.

Leave the appBase alone (pointing to webapps) and use a ROOT.xml file.

> How can I do this? I do not want to rename the 'testweb.war' to 'root.war'.
For the record it is ROOT.war - case matters, even on Windows.

> the <Context> Tag in the folder '<tomcat>/conf/Catalina/localhost'
> I tried having a ROOT.xml as well as testweb.xml, with different settings,
> but it will not work.
It should be called ROOT.xml for the result you want.

> Using a ROOT.xml that points to the 'testweb.war' results into this:
> java.lang.IllegalArgumentException: Document base /srv/www/webapps/ROOT does
> not exist or is not a readable directory

Exactly what did you put in your ROOT.xml file when you saw this error?


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message