Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 75844 invoked from network); 2 Feb 2008 22:56:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2008 22:56:30 -0000 Received: (qmail 42948 invoked by uid 500); 2 Feb 2008 22:56:08 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 42931 invoked by uid 500); 2 Feb 2008 22:56: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 42920 invoked by uid 99); 2 Feb 2008 22:56:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Feb 2008 14:56:08 -0800 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 ole.ersoy@gmail.com designates 66.249.82.232 as permitted sender) Received: from [66.249.82.232] (HELO wx-out-0506.google.com) (66.249.82.232) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Feb 2008 22:55:40 +0000 Received: by wx-out-0506.google.com with SMTP id i30so1700193wxd.12 for ; Sat, 02 Feb 2008 14:55:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=yvUNWsbMJInQ57ks7pTjaRtXrJ6NMNy7gqLsSCu4vrQ=; b=JGFNr8wHcwkQ1BazeW6QTatE0ABZj2s+fVHU/w15ri3/UtViacxqfibsbynV7haDVUAR/XncUYS8t6WgIxrcWtBNCzvjYTMsURxxBCJXfg1U4dGWqQ6vQHwMs1u+vNsK3rx+QMN1L+zztFU+POTatR6IrGWg6WX6718orylJOFQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=f0u3rbEAC1pzlpXTaXA60oEgPRHiQ+eC+lU/MzIjsxKhR0vfRcvl9nMidf+DTaoKnfjseAUjHQFs2NOL88SkEB7SAvD/PU5g3EcEjkl+Pv8iKRg2XIvYmEalwkYCLcZ7z0BNDyZixZ9XOMOXYU23bXJWX+n1BYtYLX6RjQIYEYY= Received: by 10.150.133.17 with SMTP id g17mr2110059ybd.27.1201992946268; Sat, 02 Feb 2008 14:55:46 -0800 (PST) Received: from localhost.localdomain ( [98.193.70.182]) by mx.google.com with ESMTPS id 7sm9303164wrh.22.2008.02.02.14.55.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 02 Feb 2008 14:55:45 -0800 (PST) Message-ID: <47A4F4EF.7060502@gmail.com> Date: Sat, 02 Feb 2008 16:55:43 -0600 From: Ole Ersoy User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: StandardContext start,SEVERE: Error filterStart When Including HttpServletRequestWrapper in Filter in 6.0.14 References: <47A4D83C.4010005@gmail.com> <47A4D936.2080603@gmail.com> In-Reply-To: <47A4D936.2080603@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Well, I was certain it had to be the difference in the JDKs causing it, but after compiling the filter with the Sun JDK, the same exception is still present. The localhost log has this: SEVERE: Exception starting filter testFilter java.lang.NoClassDefFoundError: test/filter/TestFilter$1 at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) So for some reason it does not see the filter after I add this code: HttpServletRequestWrapper wrapper = new HttpServletRequestWrapper((HttpServletRequest)servletRequest) { public java.lang.String getParameter(java.lang.String name) { if ("foo".equals(name)) { return "bar"; } else { return super.getParameter(name); } } }; Without this code the filter runs fine. Any ideas? Thanks, - Ole Ole Ersoy wrote: > Actually I probably got this one. I'm compiling the filter with > IcedTea, but using the Sun JDK to run tomcat, since IcedTea has issues > with keystore certificates. So if I compile with the Sun JDK I think > the issue will go away. > > Cheers, > - Ole > Ole Ersoy wrote: >> Hi, >> >> I'm getting a: >> >> org.apache.catalina.core.StandardContext start >> SEVERE: Error filterStart >> >> When inluding an HttpServletRequestWrapper in a filter. The code >> compiles fine and the filter part causing the ruckus looks like this: >> >> HttpServletRequestWrapper wrapper = new >> HttpServletRequestWrapper((HttpServletRequest)servletRequest) >> { >> public java.lang.String getParameter(java.lang.String >> name) { >> if ("foo".equals(name)) { >> return "bar"; } >> else { >> return >> super.getParameter(name); } >> } >> }; >> Thoughts? >> >> Thanks, >> - Ole >> >> >> >> >> >> >> >> >> > --------------------------------------------------------------------- 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