[opencms-dev] Problem while trying RSS-NewsModule ..

Peter Glantschnig peter.glantschnig at gmx.at
Tue Dec 30 13:52:01 CET 2003


hi,

well it's definitly a problem with the XSLT transformation...that's only
used for the extern examples.

I don't really know where the problem is, but I guess it has something to do
with some wrong Java libraries, that can be found in your classpath. 

If you have J2SE 1.4.1 and nothing else it should work. Have you ever
installed a version of the Xalan-Java project? If so, there could be problem...

However I'm quite sure the problem is within those lines:

TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource(new
StringReader(xsl_content)));
StringWriter html_content = new StringWriter();
transformer.transform(new StreamSource(new StringReader(xml_content)), new
StreamResult(html_content));

return (html_content.toString());

Maybe put the code in a little class and try if it works anyway? (but don't
forget to replace the xml content)

I hope it helped,
Peter


----- Original Message ----- 
From: "Joachim Arrasz" <info at arrasz.de>
To: <opencms-dev at opencms.org>
Sent: Tuesday, December 30, 2003 10:36 AM
Subject: [opencms-dev] Problem while trying RSS-NewsModule ..


> Hello,
> 
> this morning i played around a bit with RSS- NewsModule from Peter
> Glantschnig.
> When i installed the module and all the sql the intern examples worked
> fine, but when i tried the extern examples a Exception occured:
> Root cause:
> org.apache.jasper.JasperException: The output format must have a
> '{http://xml.apache.org/xalan}content-handler' property! at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575) at
>
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498) at
>
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:180) at
com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
> at
>
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:268) at
>
com.opencms.flex.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:370) at
com.opencms.flex.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:262)
> at org.apache.jsp.sun_jsp_jsp._jspService(sun_jsp_jsp.java:73)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575) at
>
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498) at
>
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:180) at
com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
> at
>
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:268) at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
> at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
> at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
> at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 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:2417)
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:193)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549) at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) at java.lang.Thread.run(Thread.java:534)
> 
> 
> 
> Is there anybody who can tell me what`s going wrong?
> 
> Regards Achim
> 
> 
> 
> 
> 

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net





More information about the opencms-dev mailing list