Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 80127 invoked from network); 5 Dec 2006 17:10:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2006 17:10:18 -0000 Received: (qmail 31116 invoked by uid 500); 5 Dec 2006 17:10:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 31093 invoked by uid 500); 5 Dec 2006 17:10:11 -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 31082 invoked by uid 99); 5 Dec 2006 17:10:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2006 09:10:11 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of sum.of.primes@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2006 09:10:00 -0800 Received: by ug-out-1314.google.com with SMTP id h2so3528918ugf for ; Tue, 05 Dec 2006 09:09:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=efyugv/CmPf6IDGlB7GGeC/6epdFrBVQPb+6KThoV1YaMb1JR1qRwTsyjlBbfRkdslLacRczRqzlgGkLtew7O+qSLUYcRZnqVtnLAZBGt4MAXXlspv3bJscmcqccgFJRZc0dTun2Nn2CaYExHggL73T9nsXBQMpeQsB0ef2PF+4= Received: by 10.82.127.15 with SMTP id z15mr1774144buc.1165338578524; Tue, 05 Dec 2006 09:09:38 -0800 (PST) Received: by 10.82.167.12 with HTTP; Tue, 5 Dec 2006 09:09:38 -0800 (PST) Message-ID: <5372a1d90612050909y36825f9dq3d69d70fce3e1800@mail.gmail.com> Date: Tue, 5 Dec 2006 09:09:38 -0800 From: "Ian H" To: users@tomcat.apache.org Subject: compiled header filter on tomcat 5.5 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I've taken the jspbook.jar found on page two of this article: http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html and implement the ResponseHeaderFilter on a test server successfully using the following in web.xml: ResponseHeaderFilter com.jspbook.ResponseHeaderFilter Testingtesting 123 ResponseHeaderFilter /* When I create a ResponseHeaderFilter.java file containing the source from that article, omitting the package information, it compiles without error, but does not work, with only SEVERE: Error filterStart 5/12/2006 09:03:50 org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors that I can see that indicates a problem, in the stdout.log [I wind up with the same problem if I put the package info back in, recompile it, and incorporate it into jspbook.jar...I notice that the length of the *.class files are rather different] What should I try in order to make my own ResponseHeaderFilter.class work? [Once that's sorted out, it should be trivial to substitute setHeader for addHeader, allowing me to have setHeaderFilter.class and addHeaderFilter.class] Thank you in advance, Ian --------------------------------------------------------------------- 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