cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <jheini...@virbus.de>
Subject Re: JSP & Cocoon and JSPReader problem
Date Wed, 22 Oct 2003 00:10:57 GMT
Hello Jan,

Cocoon has its problems with JSP handling. Besides possible bugs
1. the output of the JSPs must be encoded as UTF-8 and
2. jsp:forward and jsp:include do not work.

Read further comments inline:


On 21.10.2003 14:53, Jan Wielgus wrote:
> Hello all,
> 
> I got an error message when I'm trying to read my jsp page by cocoon using JSPReader.
In the sitemap I have such pipeline entry:
> 
> <map:pipeline>
> <map:match pattern="mysite/*.jsp">
> <map:read type="jsp" src="{1}.jsp" mime-type="text/html" />
> </map:match>
> </map:pipeline>
> 
> My configuration is: cocoon 2.0.4, Tomcat 4.1.27
> 
> Apart from that, I would like to ask a more general question. I have to write a web-application
for storing and transforming of XML-documents. I thought I use JSP for GUI and such things
as DBAccess (where I want to use Beans) and only the part, which would be responsible for
transforming of XML-docs in various endformats (HTML, LaTeX, PDF). I would like to "combine"
JSP with Cocoon. Is it possible, or would you rather not recommend it?

In general it's possible using the JSPGenerator. The output of the JSP 
pages must then be well-formed XML.

> Back to the first thing, the error message I get is:

The stacktrace below does say nothing. Do you have something like a root 
cause?

Regards,

Joerg

> org.apache.cocoon.ProcessingException: ServletException in JSPReader.generate()
> 
> sender org.apache.cocoon.servlet.CocoonServlet
> 
> source Cocoon servlet
> 
> stack-trace
> 
> org.apache.cocoon.ProcessingException: ServletException in JSPReader.generate()
> 	at org.apache.cocoon.reading.JSPReader.generate(JSPReader.java:150)
> 	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(CachingStreamPipeline.java:247)
> 	at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(AbstractStreamPipeline.java:168)
> 	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:289)
> 	at org.apache.cocoon.www.sitemap_xmap.matchN1098B(C:\Tomcat4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:11628)
> 	at org.apache.cocoon.www.sitemap_xmap.process(C:\Tomcat4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3870)
> 	at org.apache.cocoon.www.sitemap_xmap.process(C:\Tomcat4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3097)
> 	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
> 	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
> 	at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
> 	at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
> 	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
> 	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
> 	at java.lang.Thread.run(Thread.java:534)
> 
> regards
> 
> Jan


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


Mime
View raw message