You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robert Ellis Parrott <pa...@fas.harvard.edu> on 2003/01/07 17:45:50 UTC
Problem with serializers
>From the latest 2.1 dev out of CVS, I'm having trouble with serializers in
general, so something in general is haywire.
I have a very minimal sitemap, which is below an even more minimal
sitemap. I'm just trying (for now) to read an xml file with a generator,
then serialize it as xml or text or html etc. The error I get (after
making sure that all the components are registered) is:
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.apache.cocoon.CascadingIOException: Cannot set XMLSerializer
outputstream: org.apache.xml.utils.WrappedRuntimeException: The output
format must have a '{http://xml.apache.org/xslt}content-handler' property!
The stack trace is below. This same xml and sitemap setup works in 2.0.4,
and worked in earlier versions. I've tried switching from XSLTC to Xalan,
but this didn't change anything.
Does this look familiar to anyone?
thanx,
rob
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.apache.cocoon.CascadingIOException: Cannot set XMLSerializer
outputstream: org.apache.xml.utils.WrappedRuntimeException: The output
format must have a '{http://xml.apache.org/xslt}content-handler' property!
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:281)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:484)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:134)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:317)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:299)
at org.apache.cocoon.Cocoon.process(Cocoon.java:596)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
----------------------------
Robert E. Parrott
Department of Physics
351 Jefferson Laboratory
Harvard University
17 Oxford St.
Cambridge, Massachusetts 02138
(617)-495-2867
parrott@fas.harvard.edu
Robert.E.Parrott.96@alum.dartmouth.org (permanent)
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Problem with serializers
Posted by Joerg Heinicke <jo...@gmx.de>.
Hello Robert,
it's the old JAR problem using Java 1.4. Copy xalan-xx.jar,
xerces-xx.jar and xml-apis.jar (the versions used in current Cocoon) for
example into %TOMCAT_HOME%/common/endorsed.
Regards,
Joerg
Robert Ellis Parrott wrote:
>>>From the latest 2.1 dev out of CVS, I'm having trouble with serializers in
> general, so something in general is haywire.
>
> I have a very minimal sitemap, which is below an even more minimal
> sitemap. I'm just trying (for now) to read an xml file with a generator,
> then serialize it as xml or text or html etc. The error I get (after
> making sure that all the components are registered) is:
>
> org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
> org.apache.cocoon.CascadingIOException: Cannot set XMLSerializer
> outputstream: org.apache.xml.utils.WrappedRuntimeException: The output
> format must have a '{http://xml.apache.org/xslt}content-handler' property!
>
>
> The stack trace is below. This same xml and sitemap setup works in 2.0.4,
> and worked in earlier versions. I've tried switching from XSLTC to Xalan,
> but this didn't change anything.
>
> Does this look familiar to anyone?
>
>
>
> thanx,
>
> rob
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>