Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 21285 invoked from network); 6 Mar 2008 07:37:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2008 07:37:12 -0000 Received: (qmail 33394 invoked by uid 500); 6 Mar 2008 07:37:07 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 33346 invoked by uid 500); 6 Mar 2008 07:37:07 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 33335 invoked by uid 99); 6 Mar 2008 07:37:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 23:37:07 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 07:36:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D95E3234C03B for ; Wed, 5 Mar 2008 23:35:57 -0800 (PST) Message-ID: <1407993774.1204788957874.JavaMail.jira@brutus> Date: Wed, 5 Mar 2008 23:35:57 -0800 (PST) From: "Andrey Utkin (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-3896) Error processing HEAD method by default HttpServlet#doHead() In-Reply-To: <12098541.1204710220937.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-3896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12575594#action_12575594 ] Andrey Utkin commented on GERONIMO-3896: ---------------------------------------- Problem is fixed by jar you provide. Thanks. > Error processing HEAD method by default HttpServlet#doHead() > ------------------------------------------------------------ > > Key: GERONIMO-3896 > URL: https://issues.apache.org/jira/browse/GERONIMO-3896 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: specs > Affects Versions: 2.0.2 > Environment: Geronimo 2.0.2/Tomcat, Geronimo 2.1? > Reporter: Andrey Utkin > Attachments: GERONIMO-3896.patch, geronimo-servlet_2.5_spec-1.1.1-fake.jar > > > I have Servlet with use RequestDispatcher.include()/forward() to JSP. > My Servlet extends HttpServlet. I don`t overwrite doHead() method. > While processing HEAD method following exception throws: > {code} > 09:18:57,647 ERROR [[SimpleDispatchServlet]] Servlet.service() for servlet SimpleDispatchServlet threw exception > javax.servlet.ServletException: Original SevletResponse or wrapped original ServletResponse not passed to > RequestDispatcher in violation of SRV.8.2 and SRV.14.2.5.1 > at org.apache.catalina.core.ApplicationDispatcher.checkSameObjects(ApplicationDispatcher.java:985) > at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:493) > at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481) > at com.km.webapp.test.simple.SimpleDispatchServlet.doGet(SimpleDispatchServlet.java:26) > at javax.servlet.http.HttpServlet.doHead(HttpServlet.java:274) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) > at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:353) > at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:619) > {code} > Exploring code I found that Tomcat`s implementation of RequestDispatcher expects that passed Response/Request objects is original objects or is wrapped by ServletRequestWrapper/ServletResponseWrapper. But geronimo-servlet_2.5_spec/HttpServlet.java#doHead() use NoBodyResponse class which is not instance of ServletResponseWrapper. So, exception thrown. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.