cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <KPiroum...@protek.com>
Subject RE: How can I configure Cocoon2 to run my JSP's ?
Date Fri, 21 Jun 2002 14:03:38 GMT
I don't have problems with the examples in 2.0.3 and Tomcat 4.0.1. They work
OOTB.

Something's wrong with your JAXP libs. Check, that you don't have one more
xml-api packages somewhere in your classpath before xml-apis.jar from
Cocoon. (A hint: check batik-**.jar).

I can check if your JSPs work here if you send me one of them.

(I can check with the 2.0.3 version only)

--
Konstantin Piroumian 
kpiroumian@apache.org


> -----Original Message-----
> From: tolga tunca [mailto:tolgatoonja@yahoo.com] 
> Sent: Friday, June 21, 2002 5:50 PM
> To: cocoon-users@xml.apache.org
> Subject: How can I configure Cocoon2 to run my JSP's ?
> 
> 
> I am using  Tomcat4.0.1 , Cocoon 2.0.2 . I have my
> JSP's, they generate valid XML's. But I couldn't see
> them working with C2.
> I tried the JSP Generator and JSP Reader examples of
> C2 but they didn't work too.
> I put the error message below, maybe it will be
> helpful.
> Any help would be appreciated.
>  
>  
> --------------------------
> --------------------------
> An error occurred
> The org.apache.cocoon.www.sitemap_xmap notifies that
> org.apache.cocoon.ProcessingException says:
> Exception JspGenerator.generate()
> More precisely:
> org.apache.cocoon.ProcessingException: Exception
> JspGenerator.generate(): java.lang.ClassCastException:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl 3 P 
> ----------
>  
> extra info
>  
> Original exception : java.lang.ClassCastException:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
> at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentB
> uilderFactory.java:103)
> at
> org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUt
> ils.java:183)
> at
> org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(
> TldLocationsCache.java:165)
> at
> org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocatio
> nsCache.java:138)
> at
> org.apache.jasper.EmbededServletOptions.<init>(EmbededServletO
> ptions.java:324)
> at
> org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
> at
> org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPE
> ngineImpl.java:121)
> at
> org.apache.cocoon.generation.JspGenerator.generate(JspGenerato
> r.java:116)
> at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(CachingEventPipeline.java:251)
> at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(CachingStreamPipeline.java:399)
> at
> org.apache.cocoon.www.sitemap_xmap.matchN10790(/usr/local/tomc
> at/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/si
> temap_xmap.java:9472)
> at
> org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/w
> ork/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitema
> p_xmap.java:3667)
> at
> org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/w
> ork/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitema
> p_xmap.java:3097)
> 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(SitemapManage
> r.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.internalDoFilt
> er(ApplicationFilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:243)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:201)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java:246)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2344)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:164)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:462)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:163)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.java:1011)
> at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:1106)
> at java.lang.Thread.run(Thread.java:536)
> ------
>  
> stacktrace
>  
> org.apache.cocoon.ProcessingException: Exception
> JspGenerator.generate(): java.lang.ClassCastException:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
> at
> org.apache.cocoon.generation.JspGenerator.generate(JspGenerato
> r.java:140)
> at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(CachingEventPipeline.java:251)
> at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(CachingStreamPipeline.java:399)
> at
> org.apache.cocoon.www.sitemap_xmap.matchN10790(/usr/local/tomc
> at/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/si
> temap_xmap.java:9472)
> at
> org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/w
> ork/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitema
> p_xmap.java:3667)
> at
> org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/w
> ork/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitema
> p_xmap.java:3097)
> 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(SitemapManage
> r.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.internalDoFilt
> er(ApplicationFilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:243)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:201)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java:246)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2344)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:164)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:462)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:163)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.java:1011)
> at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:1106)
> at java.lang.Thread.run(Thread.java:536)
> Caused by: java.lang.ClassCastException:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
> at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentB
> uilderFactory.java:103)
> at
> org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUt
> ils.java:183)
> at
> org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(
> TldLocationsCache.java:165)
> at
> org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocatio
> nsCache.java:138)
> at
> org.apache.jasper.EmbededServletOptions.<init>(EmbededServletO
> ptions.java:324)
> at
> org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
> at
> org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPE
> ngineImpl.java:121)
> at
> org.apache.cocoon.generation.JspGenerator.generate(JspGenerato
> r.java:116)
> ... 41 more
> java.lang.ClassCastException:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
> at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentB
> uilderFactory.java:103)
> at
> org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUt
> ils.java:183)
> at
> org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(
> TldLocationsCache.java:165)
> at
> org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocatio
> nsCache.java:138)
> at
> org.apache.jasper.EmbededServletOptions.<init>(EmbededServletO
> ptions.java:324)
> at
> org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
> at
> org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPE
> ngineImpl.java:121)
> at
> org.apache.cocoon.generation.JspGenerator.generate(JspGenerato
> r.java:116)
> at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(CachingEventPipeline.java:251)
> at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(CachingStreamPipeline.java:399)
> at
> org.apache.cocoon.www.sitemap_xmap.matchN10790(/usr/local/tomc
> at/work/localhost/cocoon/cocoon-files/org/apache/cocoon/www/si
> temap_xmap.java:9472)
> at
> org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/w
> ork/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitema
> p_xmap.java:3667)
> at
> org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/w
> ork/localhost/cocoon/cocoon-files/org/apache/cocoon/www/sitema
> p_xmap.java:3097)
> 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(SitemapManage
> r.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.internalDoFilt
> er(ApplicationFilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:243)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:201)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java:246)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2344)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:164)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:462)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:163)
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.java:1011)
> at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:1106)
> at java.lang.Thread.run(Thread.java:536)
> original message
> java.lang.ClassCastException:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImplдщ@he.c
> &
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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/faq/index.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