Thanks for the response.

> Make sure you don't have a ROOT directory or ROOT.war file under the
<Host> appBase directory, and that you don't have any <Context> elements in
server.xml.  If your new default webapp isn't deploying > for some reason,
there should be log entries indicating why.

Yes, I did that.


> Are you using a real Tomcat on your Linux machine, or one of the 3rd-party
repackaged versions?  The latter has given people no end of problems due to
abuse of symlinks and things not being where they > appear to be.  If so,
delete it and install a real one from the Tomcat download page.
> You might want to do a clean reinstallation on the Linux box regardless,
just to make sure there's not something messed up in what you've got.

Yes, I am using a very clean installation of Tomcat 6.0.18.


However using a different 'appBase' on Windows does not work either and
breaks what I posted before.
I have studied many, many posts on the Web regarding changing the ROOT on
Tomcat, but without successfully implementing this.
Maybe Tomcat just does not support the following scenario (I changed a
little here):

- 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


How can I do this? I do not want to rename the 'testweb.war' to 'root.war'.
I believe this is the only way it works.
I have tried all other possibilities. I tried almost every combination with
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.

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
                at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:14
1)
                        ...


The Tomcat documentation does not provide any examples for how to do this.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to