Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0811810749 for ; Wed, 1 Jan 2014 19:26:29 +0000 (UTC) Received: (qmail 99921 invoked by uid 500); 1 Jan 2014 19:26:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 99824 invoked by uid 500); 1 Jan 2014 19:26:25 -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 99815 invoked by uid 99); 1 Jan 2014 19:26:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jan 2014 19:26:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [76.96.62.17] (HELO qmta10.westchester.pa.mail.comcast.net) (76.96.62.17) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jan 2014 19:26:19 +0000 Received: from omta03.westchester.pa.mail.comcast.net ([76.96.62.27]) by qmta10.westchester.pa.mail.comcast.net with comcast id 8j641n0020bG4ec5AjRy7V; Wed, 01 Jan 2014 19:25:58 +0000 Received: from Christophers-MacBook-Pro.local ([98.226.18.8]) by omta03.westchester.pa.mail.comcast.net with comcast id 8jRv1n00D0AT6Uq3PjRv9h; Wed, 01 Jan 2014 19:25:58 +0000 Message-ID: <52C46BC2.1070006@christopherschultz.net> Date: Wed, 01 Jan 2014 14:25:54 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Single error page for multiple web applications References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1388604358; bh=ACK31ZXlllQD5aiQVkAGMEnDirdQMox2dWsn19Q9X8A=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=RpD6+wMkpVgjXZi7HffeteTxYY26ifQXfwaz94yuRU7Dmq511vyyhmXIqwMDKXI7U dWPcNavH2PocvIFzZAomEINh5uKuD40JcBXyHEfYew7BAFfXOia0/w9YF2P/grHXpi cXuAMGhamVrtkjwIBXY6xqrh+XSE7BNqUyRfnZImddjMHttGN+1QQwEAYVJiGznv2b 9xECqremfDT9Ns82qXXchZEE+nqBzbSAYICfaWqtehtVbFa6RmubYK5HE8tiXjbeW1 evAQy5GFY2YGFKm5VAvclHAAqSEcmU4oNssj09aORVALYw10JJ7jYenMG7MSuj6f8c e94JMAxpnLSJw== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Leo, On 12/31/13, 3:58 PM, Leo Donahue wrote: > On Dec 31, 2013 3:15 AM, "Maarten van Hulsentop" > wrote: >> >> Hello, >> >> We are using Tomcat to host a number of web applications as a >> uniform solution. We trying to implement something that seems to >> be an odd requirement, evh it is really a use case for us. >> >> We would like to define a single [default] error page for all >> web applications residing on this Tomcat instance. After some >> experimentation and googling around, it seems that there is no >> clear-cut solution for > this. >> I see a few options; >> >> - Let the global conf/web.xml define error pages for all web >> applications at once. However these are always relative to the >> web application context, and require every web application to >> pack the error pages again, which is > a >> duplicate of resources and defeats the DRY principle. > > I asked a question similar to this a while back regarding JSF > templates. > > If you pick a location to share this resource among all web apps, > then your web apps aren't self contained. > > The solution is in your build / deploy process. +1 - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSxGvAAAoJEBzwKT+lPKRYWxsQALL6eBfL6J9Gv1Lkw1YY4sHo BmVEDiOW2fKpI8U7XJgWeGOJosN0Pd7hrBh4NP8KZtqP8Xx+t7yf+R0iIaftp6a9 cN237abc629k5x8k3Cg5XwY94mVMVYRTbLu4BnlsERVCVskw+A4dhcAfwwdJRykc fg0FbLN0WV33uYz7zFsSl0hxP2Yhxl1ZQBocn8OgwdiEkO17K6NLZhfD54AX3W5i CfyXRImO6hdpHg3+XTgEQvyfP0/Ydw4n7B8XqRBN9fjOWc2hQp+SYR6Th8BrPWz1 tRLDR07SmN3BlwSikAiiX7tibzWAfLBK5ENDJ2nUVWhAlp4A9Hbz6W+eOrHu1Bzy ghYVs+MMWqd0axBomKVvBq4giL1jhSB2fMno6HdLup/+FF4cdGmfK3eWM5h15rwq +hoXjJguZIA2riKlbn5oPKYTEpiP65ufZ5Wa2ylY5KOgQTvENYWgYNj/3p3E9gQY PIh9IFUjSXaeG4dZnx9ouUNGO8cBaFPYiBfTaaPyY0DRsatV96z6zCKu249GEcgM GZ1gumDJN0mbfsUayqGfBkhneUi83xwDItejjYxyhlxMv3bYesMxGcnmH1bN5UlC n/s438m6CpfvIVTq/aQH0AZqStOeVKR5uBX6nqF+yFb7IWa2XpbVonAjYjlsVMDk IaUOf1dAf8ISd41svgSc =qThL -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org