cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Kelley" <robjkel...@nyc.rr.com>
Subject RE: Barf on JSPGenerator on Hello.jsp (HELP!)
Date Sun, 09 Jun 2002 21:46:28 GMT


I'm still stuck here.  Any help would be appreciated.  


 > 
 > I'm running cocoon 2.0.2 on Tomcat  4.0.1 (Windows).  I've been
trying to run the hello example for the jsp:  > 
 > http://127.0.0.1:8080/cocoon/jsp/hello
 > 
 > I get the same error (stack trace at end of email):
 > 
 > "SAXException JspGenerator.generate()" 
 > 
 > My sitemap entry is:
 > 
 >    <map:match pattern="jsp/*">
 >     <map:generate src="/docs/samples/jsp/{1}.jsp" type="jsp"/>
 >     <map:transform src="stylesheets/page/simple-page2html.xsl"/>
 >     <map:serialize type="html"/>
 >    </map:match>
 > 
 > 
 > My cocoon.xconf jsp-engine is:
 >   <jsp-engine logger="core.jsp-engine">
 >     <parameter name="servlet-class"
value="org.apache.jasper.servlet.JspServlet"/>
 >     <parameter name="servlet-name" value="*.jsp"/>
 >   </jsp-engine>
 > 
 > And I'm at wit's end. How do I get JSPs to work?
 > 
 > Please help!
 > 
 > Rob
 > 
 > Stack Trace:
 > org.apache.cocoon.ProcessingException: SAXException
JspGenerator.generate() 
 > at
org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:132
) 
 > at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEventPipeline.java:251) 
 > at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:399) 
 > at org.apache.cocoon.www.sitemap_xmap.matchN105B4(C:\Program
Files\Apache Tomcat
4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xma
p.java:7741) 
 > at org.apache.cocoon.www.sitemap_xmap.process(C:\Program Files\Apache
Tomcat
4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xma
p.java:3119) 
 > at org.apache.cocoon.www.sitemap_xmap.process(C:\Program Files\Apache
Tomcat
4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xma
p.java:2617) 
 > at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) 
 > at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) 
 > at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154
) 
 > at org.apache.cocoon.Cocoon.process(Cocoon.java:575) 
 > at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) 
 > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
 > at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247) 
 > at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193) 
 > at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243) 
 > at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566) 
 > at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72) 
 > at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
 > at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:201) 
 > at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566) 
 > at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72) 
 > at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
 > at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
4) 
 > at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:164) 
 > at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566) 
 > at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170) 
 > at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564) 
 > at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170) 
 > at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564) 
 > at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
) 
 > at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564) 
 > at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72) 
 > at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
 > at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:163) 
 > at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566) 
 > at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72) 
 > at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
 > at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1011) 
 > at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1106) 
 > at java.lang.Thread.run(Unknown Source) 
 > 
 >  
 > 
 > 
 > --
 > 
 > 
 > 
 > ---------------------------------
 > Do You Yahoo!?
 > Sign-up for Video Highlights of 2002 FIFA World Cup<P>Hi:</P>  >
<P>I'm running cocoon 2.0.2 on&nbsp;Tomcat &nbsp;4.0.1 (Windows).&nbsp;
I've been trying to run the hello example for the jsp:</P>  > <P><A
href="http://127.0.0.1:8080/cocoon/jsp/hello">http://127.0.0.1:8080/coco
on/jsp/hello</A></P>
 > <P>I get the same error (stack trace at end of
email):<BR><BR><EM>"SAXException JspGenerator.generate()"</EM> </P>
 >
<P>My sitemap entry is:</P>  > <P>&nbsp;&nbsp; &lt;map:match
pattern="jsp/*"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;map:generate
src="/docs/samples/jsp/{1}.jsp" type="jsp"/&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;map:transform
src="stylesheets/page/simple-page2html.xsl"/&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;map:serialize type="html"/&gt;<BR>&nbsp;&nbsp;
&lt;/map:match&gt;<BR></P>  > <P>My cocoon.xconf jsp-engine
is:</P>&nbsp; &lt;jsp-engine
logger="core.jsp-engine"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;parameter
name="servlet-class"
value="org.apache.jasper.servlet.JspServlet"/&gt;<BR>&nbsp;&nbsp;&nbsp;
&lt;parameter name="servlet-name" value="*.jsp"/&gt;<BR>&nbsp;
&lt;/jsp-engine&gt;<BR>  > <P>And I'm at wit's end. How do I
get&nbsp;JSPs to work?</P>  > <P>Please help!</P>  > <P>Rob</P>
 >
<P><STRONG>Stack Trace:</STRONG></P>  >
<DIV>org.apache.cocoon.ProcessingException: SAXException
JspGenerator.generate() <BR>at
org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:132
) <BR>at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEventPipeline.java:251) <BR>at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:399) <BR>at
org.apache.cocoon.www.sitemap_xmap.matchN105B4(C:\Program Files\Apache
Tomcat
4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xma
p.java:7741) <BR>at
org.apache.cocoon.www.sitemap_xmap.process(C:\Program Files\Apache
Tomcat
4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xma
p.java:3119) <BR>at
org.apache.cocoon.www.sitemap_xmap.process(C:\Program Files\Apache
Tomcat
4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xma
p.java:2617) <BR>at
org.apache.cocoon.sitemap.Handler.process(Handler.java:222) <BR>at
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) <BR>at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154
) <BR>at org.apache.cocoon.Cocoon.process(Cocoon.java:575) <BR>at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
<BR>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
<BR>at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247) <BR>at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193) <BR>at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243) <BR>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566) <BR>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72) <BR>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
<BR>at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:201) <BR>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566) <BR>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72) <BR>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
<BR>at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
4) <BR>at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:164) <BR>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566) <BR>at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170) <BR>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564) <BR>at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170) <BR>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564) <BR>at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
) <BR>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564) <BR>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72) <BR>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
<BR>at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:163) <BR>at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566) <BR>at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72) <BR>at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
<BR>at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1011) <BR>at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1106) <BR>at java.lang.Thread.run(Unknown Source) <BR></DIV>  >
<P>&nbsp;</P><BR><BR>-- <br><p><br><hr size=1><b>Do
You Yahoo!?</b><br>
> <a
href="http://rd.yahoo.com/welcome/*http://fifaworldcup.yahoo.com/fc/en/s
pl">Sign-up for Video Highlights</a> of 2002 FIFA World Cup




-----Original Message-----
From: Peter Schwenke [mailto:peter@bluetoad.com.au] 
Sent: Wednesday, June 05, 2002 8:41 PM
To: cocoon-users@xml.apache.org
Subject: Re: Barf on JSPGenerator on Hello.jsp (HELP!)


Nothing springs to mind in that.  There is an exception somewhere
which is not displaying.

You might need to make sure that you have DEBUG level logging on the
JspGenerator. To do so make sure that there is a logger entry in
sitemap.xmap for the JspGenerator

like in this

   <map:generator label="content,data" logger="sitemap.generator.jsp"
name="jsp" src="org.apache.cocoon.generation.JspGenerator"/>

and then make sure DEBUG is on for the sitemap  in
/cocoon/WEB-INF/logkit.xconf 

    <category name="sitemap" log-level="DEBUG">
      <log-target id-ref="sitemap"/>
      <log-target id-ref="error"/>
    </category>

                                                                ...Peter

Rob Kelley writes:
 > 
 >  Dear Peter:
 > Thanks for the tip. Here are my log entries (ERROR, CORE, SITEMAP,
ACCESS) when I try to access /jsp/hello.  I don't understand what
they're trying to tell me.
 > Any help much appreciated. 
 > ***ERROR.LOG***
 > <empty>
 >  
 > ***ACCESS.LOG***
 

---------------------------------------------------------------------
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