You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rice Yeh <ri...@yahoo.com> on 2003/02/05 18:20:08 UTC

Cocoon 2-dev error

Hi,
   I checked out cocoon2 from cvs and build a webapp
with the folloing command 

.\build.bat -Dinclude.webapp.libs=yes
                    -Dexclude.webapp.samples=yes 
                    -Dexclude.webapp.documenation=yes
                    -Dexclude.webapp.javadocs=yes
webapp

I installed the web ap on tomcat 4.1.18 and access the
firt page with url http://localhost:8080/cocoon/, then
the error responed as shown in the following, what is
wrong?

type fatal

message Failed to execute pipeline.

description org.apache.cocoon.ProcessingException:
Failed to execute pipeline.:
org.apache.cocoon.CascadingIOException:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

cause

org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!

request-uri

/cocoon/documents/index.html

full exception chain stacktrace

Original exception :
org.apache.cocoon.CascadingIOException:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!
	at
org.apache.cocoon.serialization.HTMLSerializer.setOutputStream(HTMLSerializer.java:92)
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:277)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:485)
	at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:145)
	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:131)
	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:600)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1074)
	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:260)
	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:2415)
	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:170)
	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:223)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
	at java.lang.Thread.run(Thread.java:536)
Caused by:
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!
	at
org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFactory.java:142)
	at
org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:1007)
	at
org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:934)
	at
org.apache.xalan.transformer.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:209)
	at
org.apache.cocoon.serialization.HTMLSerializer.setOutputStream(HTMLSerializer.java:88)
	... 52 more
org.apache.xml.utils.WrappedRuntimeException: The
output format must have a
'{http://xml.apache.org/xslt}content-handler'
property!
	at
org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFactory.java:142)
	at
org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:1007)
	at
org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(TransformerImpl.java:934)
	at
org.apache.xalan.transformer.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:209)
	at
org.apache.cocoon.serialization.HTMLSerializer.setOutputStream(HTMLSerializer.java:88)
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:277)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:485)
	at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:145)
	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:131)
	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:600)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1074)
	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:260)
	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:2415)
	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:170)
	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:223)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
	at java.lang.Thread.run(Thread.java:536)


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Cocoon 2-dev error

Posted by Rice Yeh <ri...@yahoo.com>.
Hi,
  Now I changed build commnad to
 .\build.bat -Dinclude.webapp.libs=yes webapp

The same error still happens. More clue?

Regards,
Rice



--- Mark Eggers <it...@yahoo.com> wrote:
> Just a thought . . . .
> 
> You did say -Dexclude.webapp.documentation=yes.
> 
> In the sitemap.xmap there is the following match:
> 
>     <map:match pattern="">
>       <map:redirect-to uri="documents/index"/>
>     </map:match>
> 
> And then the redirect actually generates the
> document
> index.html.  Since you built without documentation,
> you'll need to change it to reflect your setup.
> 
> You might make a dummy html file and use serialize,
> or
> make an xml/xslt pair and transform it.
> 
> HTH
> 
> /mde/
> just my two cents . . . .
> 
> --- Rice Yeh <ri...@yahoo.com> wrote:
> > Hi,
> >    I checked out cocoon2 from cvs and build a
> webapp
> > with the folloing command 
> > 
> > .\build.bat -Dinclude.webapp.libs=yes
> >             -Dexclude.webapp.samples=yes          
>  
>         
> >             -Dexclude.webapp.documenation=yes
> >             -Dexclude.webapp.javadocs=yes
> > webapp
> > 
> > I installed the web ap on tomcat 4.1.18 and access
> > the firt page with url
> http://localhost:8080/cocoon/,
> > then the error responed as shown in the following,
> 
> > what is wrong?
> > 
> > type fatal
> >
> > request-uri
> > 
> > /cocoon/documents/index.html
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.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:    
> <co...@xml.apache.org>
> For additional commands, e-mail:  
> <co...@xml.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Cocoon 2-dev error

Posted by Mark Eggers <it...@yahoo.com>.
Just a thought . . . .

You did say -Dexclude.webapp.documentation=yes.

In the sitemap.xmap there is the following match:

    <map:match pattern="">
      <map:redirect-to uri="documents/index"/>
    </map:match>

And then the redirect actually generates the document
index.html.  Since you built without documentation,
you'll need to change it to reflect your setup.

You might make a dummy html file and use serialize, or
make an xml/xslt pair and transform it.

HTH

/mde/
just my two cents . . . .

--- Rice Yeh <ri...@yahoo.com> wrote:
> Hi,
>    I checked out cocoon2 from cvs and build a webapp
> with the folloing command 
> 
> .\build.bat -Dinclude.webapp.libs=yes
>             -Dexclude.webapp.samples=yes            
        
>             -Dexclude.webapp.documenation=yes
>             -Dexclude.webapp.javadocs=yes
> webapp
> 
> I installed the web ap on tomcat 4.1.18 and access
> the firt page with url
http://localhost:8080/cocoon/,
> then the error responed as shown in the following, 
> what is wrong?
> 
> type fatal
>
> request-uri
> 
> /cocoon/documents/index.html


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Cocoon 2-dev error

Posted by Stephan Michels <st...@apache.org>.
On Wed, 5 Feb 2003, Rice Yeh wrote:

> Hi,
>    I checked out cocoon2 from cvs and build a webapp
> with the folloing command
>
> .\build.bat -Dinclude.webapp.libs=yes
>                     -Dexclude.webapp.samples=yes
>                     -Dexclude.webapp.documenation=yes
>                     -Dexclude.webapp.javadocs=yes
> webapp
>
> I installed the web ap on tomcat 4.1.18 and access the
> firt page with url http://localhost:8080/cocoon/, then
> the error responed as shown in the following, what is
> wrong?
>
> type fatal
>
> message Failed to execute pipeline.
>
> description org.apache.cocoon.ProcessingException:
> Failed to execute pipeline.:
> org.apache.cocoon.CascadingIOException:
> org.apache.xml.utils.WrappedRuntimeException: The
> output format must have a
> '{http://xml.apache.org/xslt}content-handler'
> property!:
> org.apache.xml.utils.WrappedRuntimeException: The
> output format must have a
> '{http://xml.apache.org/xslt}content-handler'
> property!
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> cause
>
> org.apache.xml.utils.WrappedRuntimeException: The
> output format must have a
> '{http://xml.apache.org/xslt}content-handler'
> property!

http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=104220639510764&w=2

I went into the same trap, Stephan Michels.


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