ROOT is sort of a "magical" directory/WAR name that Tomcat recognizes and, if present, will be treated as the no-path context whether it has a <Context ...> entry or not. I think one thing you need to watch out for is having th ROOT directory present when, at the same time, you use another context as the no-path context such as...
webapps
/ROOT
/myapp
in server.xml.... <Context path="" docBase="myapp"/>
You might have to remove ROOT in order for this setup to work properly because I think Tomcat might get confused with trying to treat ROOT as the no-path context since it tries to make it the no-path context by default. However, I haven't tested this assumption. You'll have to see what works for you.
Either way, I think that documentation is either wrong, misleading, or just outdated.
Jake
At 03:00 PM 3/30/2003 -0600, you wrote:
My Tomcat skills are rusty -- I must be missing something easy here.
I just installed TC v4.1.24 on Win 2k. The installation worked right out of the box. I didn't have to make any changes to the server.xml. TC is up and running but I'm seeing something strange I was hoping someone could explain:
Here's a quote from the TC documentation: "...you MUST define a Context with a context path equal to a zero-length string. This Context becomes the default web application for this virtual host, and is used to process all requests that do not match any other Context's context path."
Okay, that's fine, but when I look at conf/server.xml I see this:
<!-- Tomcat Root Context --> <!-- <Context path="" docBase="ROOT" debug="0"/> -->
Why is this commented out? According to the documentation there must be a "context path equal to a zero-length string". The quote I cited seems to contradict what I'm seeing in server.xml.
Even though this is commented out everything seems to work fine. In other words, if I browse to localhost:8080 I do indeed see webapps/ROOT/index.jsp. Is the docBase named "ROOT" the default? If so, then the documentation should mention that I think.
Thanks very much,
Tony
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
