Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 85202 invoked from network); 13 Sep 2005 23:33:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2005 23:33:33 -0000 Received: (qmail 92642 invoked by uid 500); 13 Sep 2005 23:33:19 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 92284 invoked by uid 500); 13 Sep 2005 23:33:17 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 92268 invoked by uid 99); 13 Sep 2005 23:33:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2005 16:33:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [199.45.247.101] (HELO mail.windward.net) (199.45.247.101) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2005 16:33:27 -0700 Received: from belle [192.168.200.129] by mail.windward.net with ESMTP (SMTPD32-8.05) id A1B9C60114; Tue, 13 Sep 2005 17:33:13 -0600 From: "David Thielen" To: "'Tomcat Users List'" Subject: RE: Can't change servlet path Date: Tue, 13 Sep 2005 17:33:12 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: Thread-Index: AcW4rSrYtJblXGfzSTaqppD6zHG17wAAD82QAANPOWA= Message-Id: <200509131733847.SM01200@belle> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello; I am using Tomcat 5.5 (which is really nice). 1) I have no nodes in server.xml 2) Tomcat 5.5\conf\context.xml is: WEB-INF/web.xml 3) Tomcat 5.5\webapps\store\META-INF\context.xml is: Yet http://localhost:8080/abc fails and http://localhost:8080/store succeeds. I've read all the docs and it seems to me this is supposed to work. What am I missing???? Thanks - dave -----Original Message----- From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] Sent: Tuesday, September 13, 2005 3:59 PM To: Tomcat Users List Subject: RE: Can't change servlet path > From: David Thielen [mailto:david@windward.net] > Subject: Can't change servlet path > > I have tried the following in context.xml (in > webapps/store/WEB-INF and META-INF): Please read the very explicit doc: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html (Since you didn't bother to tell us which Tomcat version you're using, you'll need to adjust the above URL appropriately.) In particular, the above says: "In addition to nesting Context elements inside a Host element, you can also store them: * in the individual $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps * in the individual $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host * in individual files (with a ".xml" extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory * if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files" "Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place elements directly in the server.xml file. Instead, put them in the META-INF/context.xml directory of your WAR file or the conf directory as described above." If you are using 5.5, also note the following for the path attribute: "The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase." - 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: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org