tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Default context for web app
Date Wed, 10 Dec 2003 13:43:34 GMT

You don't have to name it ROOT.  Just make sure it's the only context
with path "" (the empty string).  It can be called whatever you want,
i.e. the docBase can be whatever you want.  ROOT is simply the default
tomcat name for the empty-string-path context.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Adam Hardy []
>Sent: Wednesday, December 10, 2003 6:48 AM
>To: Tomcat Users List
>Subject: Re: Default context for web app
>On 12/10/2003 08:53 AM Kent Boogaart wrote:
>> Hi all,
>> I am trying make my web application available via the default
context. In
>> other words, when I type http://localhost:8080/ in a browser on the
>> machine I want my web app to appear rather than the Tomcat default
>> I figured I'd just need to alter my context's path to "" (empty
>> alter the existing root context to use "/root" for it's path rather
>> Whilst this kind of works (my web app is available via
>> http://localhost:8080/) it has an unfortunate side effect. My web app
>> started up twice - once in the "" context and again in another
>> on my web app's name ("/eSM").
>> How can I use the default context and only the default context for my
>> app?
>You need to name your deploy directory 'ROOT' in CATALINA_HOME/webapps.
>Rename or delete the current ROOT.  Make sure there is no context xml
>config in conf/server.xml or conf/Catalina/localhost/*.xml with docbase
>ROOT apart from the one with path=''.
>Note I'm talking about 5.0.12 but I think it's pretty much the same for
>struts 1.1 + tomcat 5.0.16 + java 1.4.2
>Linux 2.4.20 Debian
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message