From users-return-190324-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Tue Jan 20 16:34:01 2009 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 28796 invoked from network); 20 Jan 2009 16:34:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jan 2009 16:34:01 -0000 Received: (qmail 77194 invoked by uid 500); 20 Jan 2009 16:33:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 76818 invoked by uid 500); 20 Jan 2009 16:33:48 -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 76807 invoked by uid 99); 20 Jan 2009 16:33:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 08:33:48 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of straightflush@gmail.com designates 74.125.44.152 as permitted sender) Received: from [74.125.44.152] (HELO yx-out-1718.google.com) (74.125.44.152) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 16:33:42 +0000 Received: by yx-out-1718.google.com with SMTP id 4so1458778yxp.54 for ; Tue, 20 Jan 2009 08:33:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=GC9GQAXnEvaOv7rzBXdPX3G0u1zucIlJ7xxSwAIkyg8=; b=Ri+CcCoTRYu6GUqDRJO9TpJ5GgYKLneUhxLcOieva7gJupK8YZpELfHcTSK/f/M5wO 0QGs26GWewlteZ9RjPoD6+rH09m1SK52C9+1i4GRBkQDy4epACkWl1tU0tYzBsOQ0Svt 7Z36eW0Ctvvoo96UyVlcX7AGuaEUtUzMdx3DA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=K1jRD5Hf0UnwbzdRgM86HI0uXT8r1HrMJholhdNBCq0RqLBN9vuYF6EQLbShepQrMu uERrBVpTuk4UNvIRkXDtcmNRe5cjUdvc7ZI4JEaROR6kkFXj39Yf014Nm/oO4zaT9rC5 9ISBl9cnSs7mH6+a0paQAT/jtu4F7qBm1nncc= Received: by 10.142.223.4 with SMTP id v4mr2943521wfg.11.1232469200867; Tue, 20 Jan 2009 08:33:20 -0800 (PST) Received: by 10.143.43.3 with HTTP; Tue, 20 Jan 2009 08:33:20 -0800 (PST) Message-ID: Date: Tue, 20 Jan 2009 11:33:20 -0500 From: AD To: "Tomcat Users List" Subject: Re: root context path - war file not unwar'd In-Reply-To: <0AAE5AB84B013E45A7B61CB66943C17215A861BC2F@USEA-EXCH7.na.uis.unisys.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18661_22739210.1232469200861" References: <0AAE5AB84B013E45A7B61CB66943C17215A861BC2F@USEA-EXCH7.na.uis.unisys.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_18661_22739210.1232469200861 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks charles, i thought there was an easier way to make a default webapp other than naming it ROOT.war. I will give that a shot to see if it works. Adam On Mon, Jan 19, 2009 at 10:36 PM, Caldarale, Charles R < Chuck.Caldarale@unisys.com> wrote: > > From: AD [mailto:straightflush@gmail.com] > > Subject: root context path - war file not unwar'd > > > > I have an issue where inside a i set the context path > > of "/" to a directory inside webapps (myapp). > > This is bad practice, and gets your webapp deployed twice. Sounds like you > also didn't remove the existing webapps/ROOT directory, so you now have two > webapps fighting to be the default one. Since you're not doing things in > the recommended fashion, no particular behavior is guaranteed. > > What you should be doing: > > 1) Delete the existing webapps/ROOT directory, thereby removing the dummy > default webapp that ships with Tomcat. > > 2) Delete everything under Tomcat's work directory, since that likely is > very confused by now. > > 3) Remove the element from server.xml - it doesn't belong there. > > 4) Rename your webapp to ROOT.war, so it becomes the default webapp. > > 5) If you actually need a element for your webapp, place it in > META-INF/context.xml inside the ROOT.war file, or in > conf/Catalina/[host]/ROOT.xml; in either case, remove the path and docBase > attributes, since they're not allowed. (If your element contained > only path and docBase, you don't need one at all.) > > When redeploying a webapp, don't just randomly delete directories while > Tomcat is running. Use the manager webapp or the appropriate ant script to > do a proper redeployment. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > ------=_Part_18661_22739210.1232469200861--