Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 6594 invoked from network); 18 Jun 2009 20:19:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jun 2009 20:19:27 -0000 Received: (qmail 41092 invoked by uid 500); 18 Jun 2009 20:19:35 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 41027 invoked by uid 500); 18 Jun 2009 20:19:34 -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 41016 invoked by uid 99); 18 Jun 2009 20:19:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 20:19:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 20:19:25 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id 6131D22609B for ; Thu, 18 Jun 2009 22:15:44 +0200 (CEST) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y7OvzITXdr5O for ; Thu, 18 Jun 2009 22:15:44 +0200 (CEST) Received: from [192.168.245.129] (p549EB3CC.dip0.t-ipconnect.de [84.158.179.204]) by tor.combios.es (Postfix) with ESMTPA id 08ACB226081 for ; Thu, 18 Jun 2009 22:15:43 +0200 (CEST) Message-ID: <4A3AA129.6020903@ice-sa.com> Date: Thu, 18 Jun 2009 22:18:49 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: aw@ice-sa.com User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Serving images from classes directory References: <00eb01c9ef53$6a00ef60$3e02ce20$@com> <4eedb92a0906170856y5027c901r4f7fcae573a4666a@mail.gmail.com> <010701c9ef65$57b7d2d0$07277870$@com> <4eedb92a0906170910w37804034we6ead730509e648d@mail.gmail.com> <011701c9ef68$0c071dc0$24155940$@com> <4eedb92a0906170956k22a534e7r4e112d33d0353a81@mail.gmail.com> <4A3922AB.7020409@apache.org> <012401c9ef6f$2aac8f10$8005ad30$@com> <4A3927C6.9060102@pidster.com> <012801c9ef74$11568f20$3403ad60$@com> <4A39312C.5080306@pidster.com> <013701c9ef78$4a352280$de9f6780$@com> <4A393CCC.6090801@pidster.com> <019401c9f010$0c211f10$24635d30$@com> <0AAE5AB84B013E45A7B61CB66943C172294460F56E@USEA-EXCH7.na.uis.unisys.com> <01bc01c9f022$bc5cea50$3516bef0$@com> <0AAE5AB84B013E45A7B61CB66943C172294460FEAC@USEA-EXCH7.na.uis.unisys.com> <01c401c9f024$af222830$0d667890$@com> In-Reply-To: <01c401c9f024$af222830$0d667890$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Susan G. Conger wrote: > All that is controlled by the tool app (Not written by me). That is why I > have to play nice. :-) Here is my web.xml for the tool app. > > > > - etc.. While not being in any way the expert here, the more I see and hear about this webapp, (or is it "webapp embedded in another webapp and using an Invoker to serve other stuff"), the more I'm getting uneasy and thinking this is a very big mess. Let me suggest an unconventional drastic solution : Put an Apache httpd in front of this Tomcat. Unzip your war file, and put the content somewhere under the httpd document root. Have httpd serve anything that is static, wherever it ends up being under /WEB-INF under this httpd document root. (Apache httpd does not have the scruples about /WEB-INF/ that Tomcat has). Delete everything that it /not/ static (*.jsp,*.class,*.jar,..) from this Apache httpd structure (so you don't serve it raw by mistake). Now connect httpd with Tomcat using a connector like mod_proxy_ajp or mod_jk, and forward all the real dynamic calls to Tomcat. Tomcat will by default not serve anything under /WEB-INF/. But that's fine : whatever static you need there, would already have been served by httpd. Unless this webapp within a webapp really generates static content on-the-fly, all of the above can be done with a simple shell script. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org