cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gasper" <gasper-li...@gorenc.com>
Subject Re: <jsp:forward> in jsp causeing error
Date Sun, 17 Feb 2002 15:10:59 GMT
Hi

I don't have a servlet.jar in my cocoon directory.

Gasper

----- Original Message ----- 
From: "Vadim Gritsenko" <vadim.gritsenko@verizon.net>
To: <cocoon-users@xml.apache.org>; <peter@bluetoad.com.au>
Sent: Friday, February 15, 2002 12:47 AM
Subject: RE: <jsp:forward> in jsp causeing error


> If you have servlet.jar in the WEB-INF/lib, this is (IIRC) *bad*, and
> you should delete it right away. Servlet.jar provided in the Cocoon with
> the only purpose to compile sources.
> 
> Vadim
> 
> > -----Original Message-----
> > From: Peter Schwenke [mailto:peter@bluetoad.com.au]
> > Sent: Thursday, February 14, 2002 6:15 PM
> > To: cocoon-users@xml.apache.org
> > Subject: <jsp:forward> in jsp causeing error
> > 
> > 
> > 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(Cachi
> ngEv
> >  > entPipeline.java:210)
> >  >  at
> >  >
> >
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
> ingS
> >  > treamPipeline.java:359)
> >  >  at
> >  >
> >
> org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40058D(sitemap_xmap.jav
> a: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.jav
> a:81
> >  > 2)
> >  >  at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> >  >  at
> >  >
> >
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
> ttpC
> >  > onnectionHandler.java:213)
> >  >  at
> >  >
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
> )
> >  >  at
> >  >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
> 1)
> >  >  at java.lang.Thread.run(Unknown Source)
> >  > java.lang.ClassCastException:
> >  > org.apache.cocoon.components.jsp.JSPEngineImpl$MyServletRequest
> >  >  at
> >  >
> >
> org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatch
> erIm
> >  > pl.java:172)
> >  >  at
> >  >
> >
> org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher
> Impl
> >  > .java:162)
> >  >  at
> >  >
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:4
> 21)
> >  >  at
> >  >
> >
> admin._0002fadmin_0002fsumniki_0002ejspsumniki_jsp_3._jspService(_0002fa
> dmin
> >  > _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(JspServle
> t.ja
> >  > va:130)
> >  >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  >  at
> >  >
> >
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
> t.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(Cachi
> ngEv
> >  > entPipeline.java:210)
> >  >  at
> >  >
> >
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
> ingS
> >  > treamPipeline.java:359)
> >  >  at
> >  >
> >
> org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40058D(sitemap_xmap.jav
> a: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.jav
> a:81
> >  > 2)
> >  >  at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> >  >  at
> >  >
> >
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
> ttpC
> >  > onnectionHandler.java:213)
> >  >  at
> >  >
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
> )
> >  >  at
> >  >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
> 1)
> >  >  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(RequestDispatch
> erIm
> >  > pl.java:172)
> >  >  at
> >  >
> >
> org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher
> Impl
> >  > .java:162)
> >  >  at
> >  >
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:4
> 21)
> >  >  at
> >  >
> >
> admin._0002fadmin_0002fsumniki_0002ejspsumniki_jsp_3._jspService(_0002fa
> dmin
> >  > _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(JspServle
> t.ja
> >  > va:130)
> >  >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  >  at
> >  >
> >
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
> t.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(Cachi
> ngEv
> >  > entPipeline.java:210)
> >  >  at
> >  >
> >
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
> ingS
> >  > treamPipeline.java:359)
> >  >  at
> >  >
> >
> org.apache.cocoon.www.sitemap_xmap.wildcardMatchN40058D(sitemap_xmap.jav
> a: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.jav
> a:81
> >  > 2)
> >  >  at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> >  >  at
> >  >
> >
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
> ttpC
> >  > onnectionHandler.java:213)
> >  >  at
> >  >
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
> )
> >  >  at
> >  >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
> 1)
> >  >  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>
> 
> 
> ---------------------------------------------------------------------
> 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