You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tony LaPaso <tl...@attbi.com> on 2003/04/01 04:54:06 UTC

?? Trying Again: Newbie Question about Root Context ??

Hi all,

I posted this question over the weekend but nobody really seemed to know the
answer. Several people speculated but nobody knew. Altough I'm sincerely
hoping for an answer, please, if you don't know for sure, don't guess. :)

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 just fine 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 cited above 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.

As I said, even though this is commented out everything seems to work fine.
In other words, if I browse to "localhost:8080" TC does indeed serve up
webapps/ROOT/index.jsp. Is the docBase named "ROOT" the default? If so, then
the documentation seems out of date. I believe in past versions of TC it was
definitely necessary to have a "context path equal to a zero-length string".

If anybody knows (for sure), I would really appreciate an explanation.

Thanks very much,

Tony



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: ?? Trying Again: Newbie Question about Root Context ??

Posted by Tony LaPaso <tl...@attbi.com>.
Here it is, straight from tomcat-4.1.24-LE-jdk14.zip





----- Original Message -----
From: "Kwok Peng Tuck" <pe...@makmal.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, March 31, 2003 9:07 PM
Subject: Re: ?? Trying Again: Newbie Question about Root Context ??


> Send a copy of your server.xml file, I don't see that commented out in
> mine. I'm pretty sure it isn't though.
>
> Tony LaPaso wrote:
>
> >Hi all,
> >
> >I posted this question over the weekend but nobody really seemed to know
the
> >answer. Several people speculated but nobody knew. Altough I'm sincerely
> >hoping for an answer, please, if you don't know for sure, don't guess. :)
> >
> >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 just fine 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 cited above
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.
> >
> >As I said, even though this is commented out everything seems to work
fine.
> >In other words, if I browse to "localhost:8080" TC does indeed serve up
> >webapps/ROOT/index.jsp. Is the docBase named "ROOT" the default? If so,
then
> >the documentation seems out of date. I believe in past versions of TC it
was
> >definitely necessary to have a "context path equal to a zero-length
string".
> >
> >If anybody knows (for sure), I would really appreciate an explanation.
> >
> >Thanks very much,
> >
> >Tony
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>

Re: ?? Trying Again: Newbie Question about Root Context ??

Posted by Kwok Peng Tuck <pe...@makmal.net>.
Send a copy of your server.xml file, I don't see that commented out in 
mine. I'm pretty sure it isn't though.

Tony LaPaso wrote:

>Hi all,
>
>I posted this question over the weekend but nobody really seemed to know the
>answer. Several people speculated but nobody knew. Altough I'm sincerely
>hoping for an answer, please, if you don't know for sure, don't guess. :)
>
>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 just fine 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 cited above 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.
>
>As I said, even though this is commented out everything seems to work fine.
>In other words, if I browse to "localhost:8080" TC does indeed serve up
>webapps/ROOT/index.jsp. Is the docBase named "ROOT" the default? If so, then
>the documentation seems out of date. I believe in past versions of TC it was
>definitely necessary to have a "context path equal to a zero-length string".
>
>If anybody knows (for sure), I would really appreciate an explanation.
>
>Thanks very much,
>
>Tony
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org