cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yaser Al Masri" <alma...@clicomm.com>
Subject exception when using xsp:forward from within Cocoon
Date Mon, 26 Nov 2001 13:29:16 GMT
Hello,

I'm trying to execute a jsp page from within Cocoon.  The page is defined in the sitemap.xmap
as:
<map:match pattern="jsp/*.jsp">
   <map:read type="jsp" src="/docs/jsp/{1}.jsp" />
</map:match>
and every thing went fine except when I added the line:
<jsp:forward page="quote.jsp"/>
I had this exception:
org.apache.cocoon.ProcessingException: ServletException in JSPReader.generate(): java.lang.ClassCastException:
org.apache.cocoon.components.jsp.JSPEngineImpl$MyServletRequest 
	at org.apache.cocoon.reading.JSPReader.generate(JSPReader.java:110) 
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(CachingStreamPipeline.java:209)

	at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(AbstractStreamPipeline.java:116)

	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:250)

	at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400485(sitemap_xmap.java:5910) 
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2903) 
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2499) 
	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:594) 
	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:797) 
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) 
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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) 

any ideas? ... Thanx


Mime
View raw message