Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 62598 invoked from network); 10 Dec 2003 14:12:39 -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:12:39 -0000 Received: (qmail 24911 invoked by uid 500); 10 Dec 2003 14:12:14 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 24893 invoked by uid 500); 10 Dec 2003 14:12:14 -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 24871 invoked from network); 10 Dec 2003 14:12:14 -0000 Received: from unknown (HELO warhawk.mpi.com) (63.244.250.133) by daedalus.apache.org with SMTP; 10 Dec 2003 14:12:14 -0000 Received: from lightning.mpi.com (lightning.mpi.com [63.244.252.11]) by warhawk.mpi.com (Switch-2.2.8/Switch-2.2.8) with ESMTP id hBAE9aE16231 for ; Wed, 10 Dec 2003 09:09:36 -0500 (EST) Received: from US-VS1.corp.mpi.com (us-be2.corp.mpi.com [63.244.252.32]) by lightning.mpi.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id hBAEBeFP029057 for ; Wed, 10 Dec 2003 09:11:40 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Default context for web app Date: Wed, 10 Dec 2003 09:09:18 -0500 Message-ID: <9C5166762F311146951505C6790A9CF8013DF837@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Default context for web app Thread-Index: AcO/JvrewJiKp8mtQKaejvttlPFFgAAADvDA From: "Shapira, Yoav" To: "Tomcat Users List" 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 Howdy, It's deployed twice if you also have autoDeploy enabled. ROOT has NOTHNING special. Maybe for the next release we should change the nam= e ROOT to something else just so people stop thinking there's something special about it ;) Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com] >Sent: Wednesday, December 10, 2003 9:07 AM >To: Tomcat Users List >Subject: Re: Default context for web app > >Yoav, >from my brief experiment, if you don't place it in ROOT, then like th= e >Kent said it gets deployed twice. > >e.g. I put my app in APPBASE/gargantus/ and set the context xml: > >path=3D'' >docBase=3D'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 i= t >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 onl= y >> context with path "" (the empty string). It can be called whatever= >> you want, i.e. the docBase can be whatever you want. ROOT is simpl= y >> 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, Decembe= r >>> 10, 2003 6:48 AM To: Tomcat Users List Subject: Re: Default contex= t >>> 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 wit= h >>> docbase ROOT apart from the one with path=3D''. >>> >>> Note I'm talking about 5.0.12 but I think it's pretty much the sam= e >>> 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 This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org