Hello Peter, Interestingly there are no errors in the core.log., whatsoever... There are no errors in error.log The only error was in sitemap.log***
The contents of hello.jsp are --- <%@ page language='java' session='false' %> <page> <title>Hello</title> <content> <para>This is my first Cocoon2 page!</para> </content> </page> --- I had saved the war file from a previous installation.... Here is what I did.... Stopped TomCat 4.0.1 I deleted all the files under TomCat/work for the old cocoon.... Removed the old war file from TomCat webapp directory Copied the new Cocoon war... Restart Tom Cat. I test SVG creation and text generator examples, everything works. But JSP does not work. I had read somewhere that there will be a new Compiler for JSP's and it would be included in the new release, is this creating the problems..... To revert back to the old war (in which JSP works), I do the following... Stop TomCat Delete all the files under TomCat\work for the cocoon context Replace the new Cocoonwar with the old one Restart TomCat Test JSP and other formats, it works... The questions are, Am I missing any steps in configuring the new release.. Have you tested JSP's with the latest Cocoon build (as of yesterday around 7:00 PM Pacific Time). If you have a working war with the latest build, could you mail it to me separately..... Thanks and regds, Chiths -----Original Message----- From: Peter Schwenke [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 7:36 PM To: [EMAIL PROTECTED] Subject: RE: [HELP]SAXException JspGenerator.generate() - Using Tom Cat 4.0.1 and latest Cocoon build JDK 1.3.1 The error is being trapped in JspGenerator for something called by JspGenerator. JspGenerator runs the JSP page and passes whatever output it gets to XML parser. Then the output of that goes to the next thing in the pipeline. The SAX Exception is because it cannot parse the output from your JSP. So either your JSP has not compiled and run correctly or the XML it generates is incorrect. You need to check your cocoon log. On my system this $CATALINA_HOME/cocoon/WEB-INF/logs/core.log.00000? ...Peter Chitharanjan Das writes: > > Hello, > > The Exception being thrown is > Also attached is the function where the exception occurs... > Please , we are in midst of our evaluation of Cocoon and this is causing > > problems in us pitching this solution.......... > > > Regds, > Chiths > > > DEBUG (2002-03-21) 17:21.31:248 > [sitemap.transformer.xslt](/accordiadev/jsp/hello) > HttpProcessor[8080][4]/TraxTransformer: Using stylesheet: > 'file:/C:/Projects/cocoon/Development/xml-cocoon2/build/cocoon/webapp/st > ylesheets/page/simple-page2html.xsl' in > org.apache.cocoon.transformation.TraxTransformer@4a3158, last modified: > 1016686998673 > WARN (2002-03-21) 17:21.32:200 [sitemap](/accordiadev/jsp/hello) > HttpProcessor[8080][4]/sitemap_xmap: Error, try to process the error > page > 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.matchN107D2(C:\Products\WebServers\To > mCat40\work\localhost\accordiadev\cocoon-files\org/apache/cocoon/www\sit > emap_xmap.java:9727) > at > org.apache.cocoon.www.sitemap_xmap.process(C:\Products\WebServers\TomCat > 40\work\localhost\accordiadev\cocoon-files\org/apache/cocoon/www\sitemap > _xmap.java:3710) > at > org.apache.cocoon.www.sitemap_xmap.process(C:\Products\WebServers\TomCat > 40\work\localhost\accordiadev\cocoon-files\org/apache/cocoon/www\sitemap > _xmap.java:3127) > 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:991) > 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.valves.CertificatesValve.invoke(CertificatesValve.ja > va:246) > 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.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(Thread.java:484) > DEBUG (2002-03-21) 17:21.32:200 [sitemap](/accordiadev/jsp/hello) > HttpProcessor[8080][4]/s > > > > The exception is occuring in this function at the SiteMap > > /** > * Process to producing the output to the specified > <code>OutputStream</code>. > */ > public final boolean process(Environment environment) throws > Exception { > /* the <code>EventPipeline</code> is used to collect the xml > producing sitemap > components and the <code>StreamPipeline</code> to produce the > requested resource */ > EventPipeline eventPipeline = null; > StreamPipeline pipeline = null; > boolean result = false; > try { > try { > eventPipeline = > (EventPipeline)this.manager.lookup(EventPipeline.ROLE); > pipeline = > (StreamPipeline)this.manager.lookup(StreamPipeline.ROLE); > pipeline.setEventPipeline(eventPipeline); > } catch (Exception e) { > getLogger().error("Processing of resource failed", e); > throw e; > } > //The exception occurs here .............................. > result = process (environment, pipeline, eventPipeline, > false); > > } finally { > if(eventPipeline != null) this.manager.release(eventPipeline); > if(pipeline != null) this.manager.release(pipeline); > } > return result; > } > -----Original Message----- > From: Peter Schwenke [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 20, 2002 10:19 PM > To: [EMAIL PROTECTED] > Subject: [HELP]SAXException JspGenerator.generate() - Using Tom Cat > 4.0.1 and latest Cocoon build JDK 1.3.1 > > Check your cocoon log. They'll be an exception thrown when when your > JSP was running. > > ...Peter > > Chitharanjan Das writes: > > Hello all, > > I just synchronized the latest source from archive and deployed > > the cocoon and upon invocation of the JSP files, I am getting a SAX > > error. > > Has anybody faced this and if yes, is there any remedy for this.. > > > > Thanks in advance. > > Chiths > > Description:org.apache.cocoon.ProcessingException: SAXException > > JspGenerator.generate() > > > > 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.matchN107D2(C:\Products\WebServers\To > > > mCat40\work\localhost\accordiadev\cocoon-files\org/apache/cocoon/www\sit > > emap_xmap.java:9727) > > at > > > org.apache.cocoon.www.sitemap_xmap.process(C:\Products\WebServers\TomCat > > > 40\work\localhost\accordiadev\cocoon-files\org/apache/cocoon/www\sitemap > > _xmap.java:3710) > > at > > > org.apache.cocoon.www.sitemap_xmap.process(C:\Products\WebServers\TomCat > > > 40\work\localhost\accordiadev\cocoon-files\org/apache/cocoon/www\sitemap > > _xmap.java:3127) > > 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:991) > > 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.valves.CertificatesValve.invoke(CertificatesValve.ja > > va:246) > > 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) > > > > > > > > --------------------------------------------------------------------- > > 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: <[EMAIL PROTECTED]> > > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > > --------------------------------------------------------------------- > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>