Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 91804 invoked from network); 23 Apr 2007 19:08:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Apr 2007 19:08:23 -0000 Received: (qmail 47850 invoked by uid 500); 23 Apr 2007 19:08:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 47833 invoked by uid 500); 23 Apr 2007 19:08:12 -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 47813 invoked by uid 99); 23 Apr 2007 19:08:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 12:08:12 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.227.126.174] (HELO moutng.kundenserver.de) (212.227.126.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Apr 2007 12:08:04 -0700 Received: from [80.128.98.96] (helo=[192.168.146.33]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis), id 0ML2xA-1Hg3sz0VD4-0007cu; Mon, 23 Apr 2007 21:07:41 +0200 Message-ID: <462D03FB.2090602@deriva.de> Date: Mon, 23 Apr 2007 21:07:39 +0200 From: =?ISO-8859-1?Q?Christian_Schr=F6der?= Organization: Deriva GmbH User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: users@tomcat.apache.org Subject: How can I control the path of my web app? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V01U2FsdGVkX19704b4pDurtR3+Yq/oJmCmBUJoRDq0AY4wmQj V2gCM9+YS3IfKZJWg+XK8mY9+mjacqjMjZqhaLlElvKy0lCxxf eSzbK+N4xIMdyHVG2APNw== X-Virus-Checked: Checked by ClamAV on apache.org Hi list! It seems that I have not yet understood the concept of webapps, contexts, servlet mappings etc. I have a long experience with good old Apache web server, but I'm quite new to servlet development / deployment in general and Tomcat in particular. My problem is as follows: I have a Tomcat 5.5 server with the out-of-the-box configuration. And I have a webapp which is packed in a war file, say "MyWebApp.war". This file contains some classes (servlets) in the "WEB-INF/classes" directory, a "web.xml" file in "WEB-INF" and a "context.xml" in "META-INF". I have write access to the "webapps" directory of the server (but only to this directory), so I can place the war file there. Tomcat (having "autoDeploy" enabled) then creates a directory "MyWebApp" in the "webapps" directory and extracts everything from the war file to this directory. After this has been done, I can find my servlets at the url "http://127.0.0.1:8080/MyWebApp/..." Ok, this works fine. But now I want my servlets to be accessible at "http://127.0.0.1:8080/foo/bar/MyWebApp/...". How can I achieve this? I have tried to create the directory structure in the "webapps" directory and put the war file into "webapps/foo/bar", but then Tomcat doesn't unpack the war file at all. Simply changing the "path" attribute of the "Context" element in my "context.xml" file didn't work, too. Is this possible at all if I only have access to the "webapps" directory (and not, for example, to the manager application)? Thanks a lot for your help, Christian My context.xml file: My web.xml file: TestServlet TestServlet TestServlet /TestServlet 30 TestServlet -- Deriva GmbH Tel.: +49 551 489500-42 Financial IT and Consulting Fax: +49 551 489500-91 Hans-B�ckler-Stra�e 2 http://www.deriva.de D-37079 G�ttingen Deriva CA Certificate: http://www.deriva.de/deriva-ca.cer --------------------------------------------------------------------- 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