cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schwenke <pe...@bluetoad.com.au>
Subject <jsp:forward> in jsp causeing error
Date Thu, 14 Feb 2002 23:14:47 GMT

I had a similar error calling RequestDispatcher.forward from a servlet
and traced it back. I ended up replacing the servlet.jar
which came with cocoon by the servlet.jar from Tomcat. Works fine.

That was with Tomcat 3.2.1 and Cocoon2.0rc2.

                                                             ...Peter
Gasper writes:
 > Hello
 > 
 > I'm building a site using cocoon 2.0 and jsp's for dynamic content In my jsp
 > I'm trying to forward to a page using a simple <jsp:forward> tag but this
 > causes an error below. I'm using tomcat 3.2.3
 > 
 > Does anybody know a solution?
 > Is this a bug?
 > 
 > Thanks
 > 
 > Gasper
 > 
 > The error:
 > 
 > org.apache.cocoon.ProcessingException: ServletException in
 > JspGenerator.generate(): java.lang.ClassCastException:
 > org.apache.cocoon.components.jsp.JSPEngineImpl$MyServletRequest
 >  at org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:87)
 >  at
 > org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
 > entPipeline.java:210)
 >  at
 > org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
 > treamPipeline.java:359)
 >  at
 > org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40058D(sitemap_xmap.java:90
 > 80)
 >  at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3026)
 >  at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2500)
 >  at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
 >  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
 >  at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
 >  at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:664)
 >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 >  at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 >  at org.apache.tomcat.core.Handler.service(Handler.java:287)
 >  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 >  at
 > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
 > 2)
 >  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 >  at
 > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 > onnectionHandler.java:213)
 >  at
 > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 >  at
 > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 >  at java.lang.Thread.run(Unknown Source)
 > java.lang.ClassCastException:
 > org.apache.cocoon.components.jsp.JSPEngineImpl$MyServletRequest
 >  at
 > org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
 > pl.java:172)
 >  at
 > org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
 > .java:162)
 >  at
 > org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:421)
 >  at
 > admin._0002fadmin_0002fsumniki_0002ejspsumniki_jsp_3._jspService(_0002fadmin
 > _0002fsumniki_0002ejspsumniki_jsp_3.java:72)
 >  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 >  at
 > org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
 > va:130)
 >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 >  at
 > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 > va:282)
 >  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 >  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 >  at
 > org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPEngineImpl.java
 > :107)
 >  at org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:74)
 >  at
 > org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
 > entPipeline.java:210)
 >  at
 > org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
 > treamPipeline.java:359)
 >  at
 > org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40058D(sitemap_xmap.java:90
 > 80)
 >  at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3026)
 >  at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2500)
 >  at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
 >  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
 >  at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
 >  at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:664)
 >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 >  at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 >  at org.apache.tomcat.core.Handler.service(Handler.java:287)
 >  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 >  at
 > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
 > 2)
 >  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 >  at
 > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 > onnectionHandler.java:213)
 >  at
 > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 >  at
 > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 >  at java.lang.Thread.run(Unknown Source)
 > 
 > 
 >  Original exception : java.lang.ClassCastException:
 > org.apache.cocoon.components.jsp.JSPEngineImpl$MyServletRequest
 >  at
 > org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
 > pl.java:172)
 >  at
 > org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
 > .java:162)
 >  at
 > org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:421)
 >  at
 > admin._0002fadmin_0002fsumniki_0002ejspsumniki_jsp_3._jspService(_0002fadmin
 > _0002fsumniki_0002ejspsumniki_jsp_3.java:72)
 >  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 >  at
 > org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
 > va:130)
 >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 >  at
 > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 > va:282)
 >  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 >  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 >  at
 > org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPEngineImpl.java
 > :107)
 >  at org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:74)
 >  at
 > org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
 > entPipeline.java:210)
 >  at
 > org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
 > treamPipeline.java:359)
 >  at
 > org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40058D(sitemap_xmap.java:90
 > 80)
 >  at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3026)
 >  at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2500)
 >  at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
 >  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
 >  at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
 >  at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:664)
 >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 >  at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 >  at org.apache.tomcat.core.Handler.service(Handler.java:287)
 >  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 >  at
 > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
 > 2)
 >  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 >  at
 > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 > onnectionHandler.java:213)
 >  at
 > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 >  at
 > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 >  at java.lang.Thread.run(Unknown Source)
 > 
 > 
 > ---------------------------------------------------------------------
 > Please check that your question has not already been answered in the
 > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
 > 
 > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
 > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message