Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 20428 invoked from network); 15 Jul 2008 13:15:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jul 2008 13:15:03 -0000 Received: (qmail 33655 invoked by uid 500); 15 Jul 2008 13:14:51 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 32921 invoked by uid 500); 15 Jul 2008 13:14:50 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 32910 invoked by uid 99); 15 Jul 2008 13:14:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 06:14:50 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dns4@cornell.edu designates 128.253.83.142 as permitted sender) Received: from [128.253.83.142] (HELO authusersmtp.mail.cornell.edu) (128.253.83.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 13:13:56 +0000 Received: from [128.253.209.217] (dns4-endeavour.calsnet.cornell.edu [128.253.209.217]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.13.1/8.12.10) with ESMTP id m6FDEJkZ003057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 15 Jul 2008 09:14:19 -0400 (EDT) Message-ID: <487CA2AD.8060002@cornell.edu> Date: Tue, 15 Jul 2008 09:14:21 -0400 From: David Smith User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Setting context in tomcat6 References: <121612720610735730@QMAIL> In-Reply-To: <121612720610735730@QMAIL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Rename your app ROOT (case is important here) and it will become the default webapp. --David vibhuti wrote: > Hi > > > > I've been trying to set my application as default application using tomcat6 > but none of the approaches I tried worked. > > > > First, I created a file .xml in /tomcat/conf/Catalina/localhost > folder but this did not make my application default. It worked on tomcat5 > but not on tomcat6. Following are the entries of my myapp.xml file: > > > > > > > > I want to access my application as: http://localhost:8080/ instead of > http://localhost:8080/myapp > > > > Second, I tried creating context.xml in /webapps/myapp/META-INF folder with > same contents as given above but that didn't work. > > > > It is written in tomcat docs that the tag should not be used in > server.xml, but adding the tag to server.xml seemed the only solution. Also, > when I added tag to server.xml it worked but the context seemed to > be loaded twice by tomcat. > > > > Is there any alternative to adding tag to server.xml file? Why is > it not advisable to add the tag in server.xml? > > > > Please provide a workaround for this. It is urgent. > > > > Thanks > > > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org