Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 75130 invoked from network); 26 Nov 2007 15:08:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2007 15:08:32 -0000 Received: (qmail 30660 invoked by uid 500); 26 Nov 2007 15:08:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 29783 invoked by uid 500); 26 Nov 2007 15:08:08 -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 29772 invoked by uid 99); 26 Nov 2007 15:08:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 07:08:08 -0800 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: local policy) Received: from [217.116.0.60] (HELO correo13.acens.net) (217.116.0.60) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 15:07:46 +0000 Received: (qmail 15421 invoked from network); 26 Nov 2007 15:07:47 -0000 Received: from unknown (HELO [127.0.0.1]) (felix.pedrera.deimos-space.com@[195.55.52.234]) (envelope-sender ) by correo13.acens.net (qmail-ldap-1.03) with SMTP for ; 26 Nov 2007 15:07:47 -0000 Message-ID: <474AE13F.5040500@deimos-space.com> Date: Mon, 26 Nov 2007 16:07:43 +0100 From: =?ISO-8859-1?Q?F=E9lix_Pedrera_Garc=EDa?= User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: users@tomcat.apache.org Subject: Access to static external resources from a webapp in Tomcat 5.5.25. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hello, For a webapp deployed on Tomcat 5.5.9 to access static external resources (images, videos, etc), which we don't want to be deleted when the application is undeployed, we use the following entry on the context.xml file of the webapp, under the META-INF directory of the web application: Having configured this, we can access the files under /path/to/resources through the URL http://localhost:8080/contents. This worked perfectly with Tomcat 5.5.9, but when upgrading to Tomcat 5.5.25 the webapp cannot access the external resources we place outside of the Tomcat webapps directory. Which is the proper method to access external resources from a webapp has been defined from version 5.5.10? This issue has been notified previously to the list, some answers where the following "You don't explicitly say where your element is, but the implication is that it's inside a file named context.xml in your webapp's META-INF directory. If that is the case, both the path and docBase attributes are ignored. See: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Look at the descriptions for the two attributes in question. The docBase attribute is intended to provide the location of the webapp, not a link to external resources. Tomcat versions after 5.5.9 seem to have tightened up enforcement of the configuration rules." I understand these attributes are intented to provide a location of the webapp, but in this case, how do I access to static external resources from a webapp in Tomcat 5.5.25? Thanks in advance, -- F�lix Pedrera. --------------------------------------------------------------------- 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