Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 58283 invoked from network); 2 Oct 2009 14:45:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Oct 2009 14:45:54 -0000 Received: (qmail 49756 invoked by uid 500); 2 Oct 2009 14:45:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 49665 invoked by uid 500); 2 Oct 2009 14:45:50 -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 49654 invoked by uid 99); 2 Oct 2009 14:45:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 14:45:50 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [193.252.22.159] (HELO smtp5.freeserve.com) (193.252.22.159) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 14:45:40 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3402.me.freeserve.com (SMTP Server) with ESMTP id A54AD1C00085 for ; Fri, 2 Oct 2009 16:45:19 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3402.me.freeserve.com (SMTP Server) with ESMTP id 98A191C00086 for ; Fri, 2 Oct 2009 16:45:19 +0200 (CEST) Received: from mx01.dev.local (unknown [91.109.180.76]) by mwinf3402.me.freeserve.com (SMTP Server) with ESMTP id 3A4A01C00085 for ; Fri, 2 Oct 2009 16:45:19 +0200 (CEST) X-ME-UUID: 20091002144519238.3A4A01C00085@mwinf3402.me.freeserve.com Received: from localhost (localhost [127.0.0.1]) by mx01.dev.local (Postfix) with ESMTP id 99E1F3222E for ; Fri, 2 Oct 2009 15:45:43 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from mx01.dev.local ([127.0.0.1]) by localhost (mx01.dev.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ycLZMxCZZ0Ao for ; Fri, 2 Oct 2009 15:45:40 +0100 (BST) Received: from [192.168.0.9] (study03.dev.local [192.168.0.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.dev.local (Postfix) with ESMTPSA id 92F933222D for ; Fri, 2 Oct 2009 15:45:40 +0100 (BST) Message-ID: <4AC611F4.40405@apache.org> Date: Fri, 02 Oct 2009 15:45:08 +0100 From: Mark Thomas User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Cannot set remote address in valve (Tomcat 5.5) References: <4B7A3AA67FB2456E8F477D96BCDBF8FF@ealbek> <4ABF7789.1010308@cornell.edu> <6FA924FC646B45319F42E7207C67BC44@ealbek> <4AC5CDF4.1070804@apache.org> <4AC60EE6.50601@christopherschultz.net> In-Reply-To: <4AC60EE6.50601@christopherschultz.net> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Christopher Schultz wrote: > Mark, > > On 10/2/2009 5:55 AM, Mark Thomas wrote: >> Elli Albek wrote: >>> A few reasons why not to do this as a servlet filter: >>> >>> 1. There are many web apps on the server and I don't want to include the >>> filter in each. >> You don't have to. Configure it in the global web.xml. > > Are the filters configured in conf/web.xml considered "before" those in > WEB-INF/web.xml... that is, will they be called before the > webapp-defined ones? I believe so, yes. >>> 2. There are other valves like request filters that cannot work without the >>> correct IP, as well as custom login valve. >> Filters should be OK providing they are defined in the right order. > > Aren't all Valves always called before Filters? Yes. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org