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/03/30 23:00:48 UTC

?? Simple Newbie Question about Root Context ??

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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: ?? Simple Newbie Question about Root Context ??

Posted by Micael <ca...@harbornet.com>.
No, it is not a guess.  I mean "has to be".  The default has to be 
"hardcoded" somewhere, since it is not configured and it does not happen 
magically.

At 05:59 AM 3/31/03 -0600, you wrote:
>Well, it sounds like a guess...
>
>
>----- Original Message -----
>From: "Micael" <ca...@harbornet.com>
>To: "Tomcat Users List" <to...@jakarta.apache.org>
>Sent: Monday, March 31, 2003 12:33 AM
>Subject: Re: ?? Simple Newbie Question about Root Context ??
>
>
> > The reason has to be, then, that the startup of the webapp creates a
> > default context on its own, because it cannot happen magically.  I hope
> > that does not sound "smart-alexey" but, rather, clear.
> >
> >
> >
> > At 08:14 PM 3/30/03 -0600, you wrote:
> > >But my point is that everything works fine even *with* the comment. THAT
>is
> > >what's confusing.
> > >
> > >
> > >----- Original Message -----
> > >From: "Carol Carrick" <cc...@sympatico.ca>
> > >To: "Tomcat Users List" <to...@jakarta.apache.org>
> > >Sent: Sunday, March 30, 2003 4:20 PM
> > >Subject: Re: ?? Simple Newbie Question about Root Context ??
> > >
> > >
> > > > The website I sent tells you to take the comments out.
> > > > ----- Original Message -----
> > > > From: "Tony LaPaso" <tl...@attbi.com>
> > > > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > > > Sent: Sunday, March 30, 2003 5:01 PM
> > > > Subject: Re: ?? Simple Newbie Question about Root Context ??
> > > >
> > > >
> > > > > Well, I don't have to create pages under ROOT as you did, but that's
>a
> > > > > separate issue from what I'm asking.
> > > > >
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Carol Carrick" <cc...@sympatico.ca>
> > > > > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > > > > Sent: Sunday, March 30, 2003 3:50 PM
> > > > > Subject: Re: ?? Simple Newbie Question about Root Context ??
> > > > >
> > > > >
> > > > > > Although I am really a newbie, I have the same o/s system.  I have
> > > > trouble
> > > > > > loading my pages until I created them under the ROOT path and
> > > > uncommented
> > > > > > the section you are referring to.  Here is a good web reference.
> > > > > > http://www.moreservlets.com/Using-Tomcat-4.html
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Tony LaPaso" <tl...@attbi.com>
> > > > > > To: "Tomcat User" <to...@jakarta.apache.org>
> > > > > > Sent: Sunday, March 30, 2003 4:00 PM
> > > > > > Subject: ?? Simple Newbie Question about Root Context ??
> > > > > >
> > > > > >
> > > > > > > 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:
>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
> > > > > >
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > 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
> > > >
> > > >
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
> > LEGAL NOTICE
> >
> > This electronic mail  transmission and any accompanying documents contain
> > information belonging to the sender which may be confidential and legally
> > privileged.  This information is intended only for the use of the
> > individual or entity to whom this electronic mail transmission was sent as
> > indicated above. If you are not the intended recipient, any disclosure,
> > copying, distribution, or action taken in reliance on the contents of the
> > information contained in this transmission is strictly prohibited.  If you
> > have received this transmission in error, please delete the message.
>Thank
> > you
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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



LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: ?? Simple Newbie Question about Root Context ??

Posted by Tony LaPaso <tl...@attbi.com>.
Well, it sounds like a guess...


----- Original Message -----
From: "Micael" <ca...@harbornet.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, March 31, 2003 12:33 AM
Subject: Re: ?? Simple Newbie Question about Root Context ??


> The reason has to be, then, that the startup of the webapp creates a
> default context on its own, because it cannot happen magically.  I hope
> that does not sound "smart-alexey" but, rather, clear.
>
>
>
> At 08:14 PM 3/30/03 -0600, you wrote:
> >But my point is that everything works fine even *with* the comment. THAT
is
> >what's confusing.
> >
> >
> >----- Original Message -----
> >From: "Carol Carrick" <cc...@sympatico.ca>
> >To: "Tomcat Users List" <to...@jakarta.apache.org>
> >Sent: Sunday, March 30, 2003 4:20 PM
> >Subject: Re: ?? Simple Newbie Question about Root Context ??
> >
> >
> > > The website I sent tells you to take the comments out.
> > > ----- Original Message -----
> > > From: "Tony LaPaso" <tl...@attbi.com>
> > > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > > Sent: Sunday, March 30, 2003 5:01 PM
> > > Subject: Re: ?? Simple Newbie Question about Root Context ??
> > >
> > >
> > > > Well, I don't have to create pages under ROOT as you did, but that's
a
> > > > separate issue from what I'm asking.
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Carol Carrick" <cc...@sympatico.ca>
> > > > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > > > Sent: Sunday, March 30, 2003 3:50 PM
> > > > Subject: Re: ?? Simple Newbie Question about Root Context ??
> > > >
> > > >
> > > > > Although I am really a newbie, I have the same o/s system.  I have
> > > trouble
> > > > > loading my pages until I created them under the ROOT path and
> > > uncommented
> > > > > the section you are referring to.  Here is a good web reference.
> > > > > http://www.moreservlets.com/Using-Tomcat-4.html
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Tony LaPaso" <tl...@attbi.com>
> > > > > To: "Tomcat User" <to...@jakarta.apache.org>
> > > > > Sent: Sunday, March 30, 2003 4:00 PM
> > > > > Subject: ?? Simple Newbie Question about Root Context ??
> > > > >
> > > > >
> > > > > > 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:
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
> > > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > 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
> > >
> > >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
> LEGAL NOTICE
>
> This electronic mail  transmission and any accompanying documents contain
> information belonging to the sender which may be confidential and legally
> privileged.  This information is intended only for the use of the
> individual or entity to whom this electronic mail transmission was sent as
> indicated above. If you are not the intended recipient, any disclosure,
> copying, distribution, or action taken in reliance on the contents of the
> information contained in this transmission is strictly prohibited.  If you
> have received this transmission in error, please delete the message.
Thank
> you
>
>
>
> ---------------------------------------------------------------------
> 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: ?? Simple Newbie Question about Root Context ??

Posted by Micael <ca...@harbornet.com>.
The reason has to be, then, that the startup of the webapp creates a 
default context on its own, because it cannot happen magically.  I hope 
that does not sound "smart-alexey" but, rather, clear.



At 08:14 PM 3/30/03 -0600, you wrote:
>But my point is that everything works fine even *with* the comment. THAT is
>what's confusing.
>
>
>----- Original Message -----
>From: "Carol Carrick" <cc...@sympatico.ca>
>To: "Tomcat Users List" <to...@jakarta.apache.org>
>Sent: Sunday, March 30, 2003 4:20 PM
>Subject: Re: ?? Simple Newbie Question about Root Context ??
>
>
> > The website I sent tells you to take the comments out.
> > ----- Original Message -----
> > From: "Tony LaPaso" <tl...@attbi.com>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > Sent: Sunday, March 30, 2003 5:01 PM
> > Subject: Re: ?? Simple Newbie Question about Root Context ??
> >
> >
> > > Well, I don't have to create pages under ROOT as you did, but that's a
> > > separate issue from what I'm asking.
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Carol Carrick" <cc...@sympatico.ca>
> > > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > > Sent: Sunday, March 30, 2003 3:50 PM
> > > Subject: Re: ?? Simple Newbie Question about Root Context ??
> > >
> > >
> > > > Although I am really a newbie, I have the same o/s system.  I have
> > trouble
> > > > loading my pages until I created them under the ROOT path and
> > uncommented
> > > > the section you are referring to.  Here is a good web reference.
> > > > http://www.moreservlets.com/Using-Tomcat-4.html
> > > >
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Tony LaPaso" <tl...@attbi.com>
> > > > To: "Tomcat User" <to...@jakarta.apache.org>
> > > > Sent: Sunday, March 30, 2003 4:00 PM
> > > > Subject: ?? Simple Newbie Question about Root Context ??
> > > >
> > > >
> > > > > 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: 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
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Re: ?? Simple Newbie Question about Root Context ??

Posted by Tony LaPaso <tl...@attbi.com>.
But my point is that everything works fine even *with* the comment. THAT is
what's confusing.


----- Original Message -----
From: "Carol Carrick" <cc...@sympatico.ca>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Sunday, March 30, 2003 4:20 PM
Subject: Re: ?? Simple Newbie Question about Root Context ??


> The website I sent tells you to take the comments out.
> ----- Original Message -----
> From: "Tony LaPaso" <tl...@attbi.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Sunday, March 30, 2003 5:01 PM
> Subject: Re: ?? Simple Newbie Question about Root Context ??
>
>
> > Well, I don't have to create pages under ROOT as you did, but that's a
> > separate issue from what I'm asking.
> >
> >
> >
> > ----- Original Message -----
> > From: "Carol Carrick" <cc...@sympatico.ca>
> > To: "Tomcat Users List" <to...@jakarta.apache.org>
> > Sent: Sunday, March 30, 2003 3:50 PM
> > Subject: Re: ?? Simple Newbie Question about Root Context ??
> >
> >
> > > Although I am really a newbie, I have the same o/s system.  I have
> trouble
> > > loading my pages until I created them under the ROOT path and
> uncommented
> > > the section you are referring to.  Here is a good web reference.
> > > http://www.moreservlets.com/Using-Tomcat-4.html
> > >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Tony LaPaso" <tl...@attbi.com>
> > > To: "Tomcat User" <to...@jakarta.apache.org>
> > > Sent: Sunday, March 30, 2003 4:00 PM
> > > Subject: ?? Simple Newbie Question about Root Context ??
> > >
> > >
> > > > 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: 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
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>


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


Re: ?? Simple Newbie Question about Root Context ??

Posted by Carol Carrick <cc...@sympatico.ca>.
The website I sent tells you to take the comments out.
----- Original Message -----
From: "Tony LaPaso" <tl...@attbi.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Sunday, March 30, 2003 5:01 PM
Subject: Re: ?? Simple Newbie Question about Root Context ??


> Well, I don't have to create pages under ROOT as you did, but that's a
> separate issue from what I'm asking.
>
>
>
> ----- Original Message -----
> From: "Carol Carrick" <cc...@sympatico.ca>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Sunday, March 30, 2003 3:50 PM
> Subject: Re: ?? Simple Newbie Question about Root Context ??
>
>
> > Although I am really a newbie, I have the same o/s system.  I have
trouble
> > loading my pages until I created them under the ROOT path and
uncommented
> > the section you are referring to.  Here is a good web reference.
> > http://www.moreservlets.com/Using-Tomcat-4.html
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "Tony LaPaso" <tl...@attbi.com>
> > To: "Tomcat User" <to...@jakarta.apache.org>
> > Sent: Sunday, March 30, 2003 4:00 PM
> > Subject: ?? Simple Newbie Question about Root Context ??
> >
> >
> > > 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: 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
> >
>
>
> ---------------------------------------------------------------------
> 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: ?? Simple Newbie Question about Root Context ??

Posted by Tony LaPaso <tl...@attbi.com>.
Well, I don't have to create pages under ROOT as you did, but that's a
separate issue from what I'm asking.



----- Original Message -----
From: "Carol Carrick" <cc...@sympatico.ca>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Sunday, March 30, 2003 3:50 PM
Subject: Re: ?? Simple Newbie Question about Root Context ??


> Although I am really a newbie, I have the same o/s system.  I have trouble
> loading my pages until I created them under the ROOT path and uncommented
> the section you are referring to.  Here is a good web reference.
> http://www.moreservlets.com/Using-Tomcat-4.html
>
>
>
>
> ----- Original Message -----
> From: "Tony LaPaso" <tl...@attbi.com>
> To: "Tomcat User" <to...@jakarta.apache.org>
> Sent: Sunday, March 30, 2003 4:00 PM
> Subject: ?? Simple Newbie Question about Root Context ??
>
>
> > 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: 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
>


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


Re: ?? Simple Newbie Question about Root Context ??

Posted by Carol Carrick <cc...@sympatico.ca>.
Although I am really a newbie, I have the same o/s system.  I have trouble
loading my pages until I created them under the ROOT path and uncommented
the section you are referring to.  Here is a good web reference.
http://www.moreservlets.com/Using-Tomcat-4.html




----- Original Message -----
From: "Tony LaPaso" <tl...@attbi.com>
To: "Tomcat User" <to...@jakarta.apache.org>
Sent: Sunday, March 30, 2003 4:00 PM
Subject: ?? Simple Newbie Question about Root Context ??


> 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: 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: ?? Simple Newbie Question about Root Context ??

Posted by Jacob Kjome <ho...@visi.com>.
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: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org