Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 59765 invoked from network); 10 Dec 2003 14:08:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Dec 2003 14:08:36 -0000 Received: (qmail 14526 invoked by uid 500); 10 Dec 2003 14:07:56 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 14492 invoked by uid 500); 10 Dec 2003 14:07:56 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 14380 invoked from network); 10 Dec 2003 14:07:55 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.183) by daedalus.apache.org with SMTP; 10 Dec 2003 14:07:55 -0000 Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AU50O-0007dr-00 for tomcat-user@jakarta.apache.org; Wed, 10 Dec 2003 15:07:56 +0100 Received: from [217.228.253.202] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AU50N-0008M2-00 for tomcat-user@jakarta.apache.org; Wed, 10 Dec 2003 15:07:56 +0100 Message-ID: <3FD72882.6040303@cyberspaceroad.com> Date: Wed, 10 Dec 2003 15:06:58 +0100 From: Adam Hardy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031103 X-Accept-Language: en, en-us, de-de MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Default context for web app References: <9C5166762F311146951505C6790A9CF8013DF830@US-VS1.corp.mpi.com> In-Reply-To: <9C5166762F311146951505C6790A9CF8013DF830@US-VS1.corp.mpi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:7be52423742ce504c1b541fa1f258887 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yoav, from my brief experiment, if you don't place it in ROOT, then like the Kent said it gets deployed twice. e.g. I put my app in APPBASE/gargantus/ and set the context xml: path='' docBase='gargantus' then I can access my app via http://localhost/ and http://localhost/gargantus/ I'm not sure about 5.x but in 4.x I remember it definitely deployed it twice, as evidenced by the logging. The way to avoid this is to deploy it in ROOT/ It doesn't affect me too much to worry about it but if I decided I wanted to have a different app at /gargantus/ then I suspect tomcat would cause problems. Adam On 12/10/2003 02:43 PM Shapira, Yoav wrote: > Howdy, 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 >> [mailto:ahardy.struts@cyberspaceroad.com] 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 > > local > >>> machine I want my web app to appear rather than the Tomcat >>> default > > web > >> app. >> >>> I figured I'd just need to alter my context's path to "" (empty > > string) > >> and >> >>> alter the existing root context to use "/root" for it's path >>> rather > > than > >> "". >> >>> Whilst this kind of works (my web app is available via >>> http://localhost:8080/) it has an unfortunate side effect. My web >>> app > > is > >>> started up twice - once in the "" context and again in another > > context > >> based >> >>> on my web app's name ("/eSM"). >>> >>> How can I use the default context and only the default context >>> for my > > web > >>> 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 > > 4.x -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org