cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <pfennig63-cocoonus...@yahoo.com>
Subject [HELP]Failed to execute pipeline.
Date Mon, 19 Jan 2004 00:33:07 GMT
Description:org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: org.apache.avalon.framework.CascadingRuntimeException: Error
accessing attribute 'pr20030207' from input module 'site'. Error using
source cocoon:/about/pressrelease/linkmap-index.html

I try to copy the forrest meny system to be used in my own plain
cocoon-app. I'v come so far, please help:

sitemap.xmap----------------------------------------------------
  <!-- =========================== Pipelines
================================= -->

  <map:pipelines>
    <map:pipeline>
      <!-- Link maps -->
      <map:match pattern="abs-linkmap">
        <map:mount uri-prefix="" src="linkmap.xmap"/>
      </map:match>
    </map:pipeline>

    <map:pipeline>
      <map:match pattern="**linkmap-*">
        <map:match pattern="linkmap-site.*">
          <map:mount uri-prefix="" src="aggregate.xmap"
check-reload="yes" />
        </map:match>

        <map:mount uri-prefix="" src="linkmap.xmap" check-reload="yes"
/>
      </map:match>
      
    </map:pipeline>
    <map:pipeline name="navigation">
      <!-- </map:pipeline> internal-only="true"> -->

      <map:match pattern="sitemap.xml">
        <map:generate type="directory" src=".">
          <map:parameter name="depth" value="2"/>
        </map:generate>
        <map:serialize type="xml"/>
      </map:match>
    </map:pipeline>
    <map:pipeline name="sitemap">
      <map:match pattern="sitemap.html">
        <map:generate type="directory" src=".">
          <map:parameter name="depth" value="2"/>
        </map:generate>
        <map:transform src="sitemap2html.xsl" label="content"/>
        <map:serialize type="html"/>
      </map:match>
    </map:pipeline>
    <map:pipeline>
      <map:match pattern="**/*.html">
<!--
        <map:generate src="{1}/{2}.xml"/>
 -->
		<map:generate src="cocoon:/{1}/{2}.xml" label="source"/>
		<map:transform type="idgen"/>
		<map:transform type="xinclude"/>
		<map:transform type="linkrewriter"
src="cocoon:/{1}/linkmap-{2}.html"/>
        <map:transform src="doc2html.xsl"/>
        <map:serialize/>
      </map:match>
      <map:match pattern="*.html">
<!--
        <map:generate src="{1}.xml"/>
 -->
		<map:generate src="cocoon:/{2}.xml"/>
		<map:transform type="idgen"/>
		<map:transform type="xinclude"/>
		<map:transform type="linkrewriter" src="cocoon:/linkmap-{2}.html"/>
        <map:transform src="doc2html.xsl"/>
        <map:serialize/>
      </map:match>
      <map:match pattern="**/*.gif">
        <map:read type="resource" src="{1}/{2}.gif"
mime-type="image/gif"/>
      </map:match>
      <map:match pattern="*/*.gif">
        <map:read type="resource" src="/{1}/{2}.gif"
mime-type="image/gif"/>
      </map:match>
      <map:match pattern="**/*.css">
        <map:read type="resource" src="{1}/{2}.css"
mime-type="text/css"/>
      </map:match>
      <map:match pattern="**.js">
        <map:read type="resource" src="{1}.js"
mime-type="text/javascript"/>
      </map:match>
      <map:match pattern="**.xml">
        <map:generate src="{1}.xml"/>
        <map:serialize type="xml"/>
      </map:match>
      <map:match pattern="**.jar">
        <map:read type="resource" src="{1}.jar"
mime-type="application/java-archive"/>
      </map:match>
    </map:pipeline>
    <map:pipeline>
      <!-- default -->
      <map:match pattern="">
        <map:redirect-to uri="NewConficio/index.html"/>
      </map:match>
    </map:pipeline>
<!-- -->
    <map:pipeline>
      <!-- default too -->
      <map:match pattern="/index.html">
        <map:redirect-to uri="index.html"/>
      </map:match>
    </map:pipeline>
<!-- -->
      
  </map:pipelines>
--------------------------------------------------------
linkmap.xmap--------------------------------------------
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  <map:components>
    <map:generators default="file"/>
    <map:serializers default="html"/>
    <map:transformers default="xslt"/>
    <map:matchers default="wildcard"/>
  </map:components>

  <map:pipelines>
    <map:pipeline>

      <!-- site.xml with @href's appended to be context-relative. -->
      <map:match pattern="abs-linkmap">
<!--        <map:generate src="content/xdocs/site.xml" /> -->
        <map:generate src="site.xml" />
        <map:transform
src="resources/stylesheets/absolutize-linkmap.xsl" />
        <map:serialize type="xml" />
      </map:match>

  </map:pipeline>
  <map:pipeline>

      <!-- Linkmap for regular pages -->
      <map:match pattern="**linkmap-*">
        <map:generate src="cocoon://abs-linkmap" />
        <map:transform
src="resources/stylesheets/relativize-linkmap.xsl">
          <map:parameter name="path" value="{1}{2}" />
          <map:parameter name="site-root"
value="http://localhost:8888/NewConficio/"/> <!-- {conf:project-url}"
/> -->
        </map:transform>
        <map:serialize type="xml" />
      </map:match>

    </map:pipeline>
  </map:pipelines>

</map:sitemap>
--------------------------------------------------------
sitemap.log---------------------------------------------
WARN    (2004-01-18) 19:24.18:938   [sitemap]
(/NewConficio/about/pressrelease/index.html)
PoolThread-4/ExcaliburComponentManager: disposing of handler for
unreleased component. role
[org.apache.cocoon.transformation.TransformerSelector]
INFO    (2004-01-18) 19:24.18:968   [sitemap]
(/NewConficio/about/pressrelease/index.html)
PoolThread-4/IdGeneratorTransformer: ## || Configuring
IdGeneratorTransformer with
org.apache.avalon.framework.configuration.DefaultConfiguration@5da37c
INFO    (2004-01-18) 19:24.19:048   [sitemap]
(/NewConficio/about/pressrelease/index.html)
PoolThread-4/IdGeneratorTransformer: ## Got id 
INFO    (2004-01-18) 19:24.19:048   [sitemap]
(/NewConficio/about/pressrelease/index.html)
PoolThread-4/IdGeneratorTransformer: ## 0 conflicts with 
INFO    (2004-01-18) 19:24.19:058   [sitemap]
(/NewConficio/about/pressrelease/index.html)
PoolThread-4/IdGeneratorTransformer: ## Got id 
INFO    (2004-01-18) 19:24.19:058   [sitemap]
(/NewConficio/about/pressrelease/index.html)
PoolThread-4/IdGeneratorTransformer: ## 1 conflicts with 
INFO    (2004-01-18) 19:24.19:068   [sitemap]
(/NewConficio/about/pressrelease/index.html)
PoolThread-4/IdGeneratorTransformer: ## Got id 
INFO    (2004-01-18) 19:24.19:068   [sitemap]
(/NewConficio/about/pressrelease/index.html)
PoolThread-4/IdGeneratorTransformer: ## 1 conflicts with 
INFO    (2004-01-18) 19:24.19:168   [sitemap]
(/NewConficio/about/pressrelease/index.html)
PoolThread-4/HandleErrorsNode: Processing handle-errors at
file:/C:/cocoon-2.1.3/build/webapp/sitemap.xmap:743:24
-------------------------------------------------
handeled-errors.log------------------------------
org.apache.avalon.framework.CascadingRuntimeException: Error accessing
attribute 'pr20030207' from input module 'site'. Error using source
cocoon:/about/pressrelease/linkmap-index.html
	at
org.apache.cocoon.components.language.markup.xsp.XSPModuleHelper.get(XSPModuleHelper.java:169)
	at
org.apache.cocoon.components.language.markup.xsp.XSPModuleHelper.getAttribute(XSPModuleHelper.java:233)
	at
org.apache.cocoon.transformation.LinkRewriterTransformer.getLinkAttr(LinkRewriterTransformer.java:368)
	at
org.apache.cocoon.transformation.LinkRewriterTransformer.startTransformingElement(LinkRewriterTransformer.java:333)
	at
org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:333)
	at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:130)
	at
org.apache.cocoon.transformation.XIncludeTransformer$XIncludePipe.startElement(XIncludeTransformer.java:215)
	at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:130)
	at
org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:118)
	at
org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.startNode(DOMStreamer.java:469)
	at
org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.stream(DOMStreamer.java:253)
	at org.apache.cocoon.xml.dom.DOMStreamer.stream(DOMStreamer.java:174)
	at
org.apache.cocoon.transformation.AbstractDOMTransformer.notify(AbstractDOMTransformer.java:179)
	at
org.apache.cocoon.xml.dom.DOMBuilder.notifyListener(DOMBuilder.java:206)
	at
org.apache.cocoon.xml.dom.DOMBuilder.endDocument(DOMBuilder.java:198)
	at
org.apache.cocoon.transformation.AbstractDOMTransformer.endDocument(AbstractDOMTransformer.java:203)
	at
org.apache.cocoon.components.EnvironmentChanger.endDocument(EnvironmentStack.java:138)
	at
org.apache.cocoon.components.sax.XMLTeePipe.endDocument(XMLTeePipe.java:102)
	at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown
Source)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown
Source)
	at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
	at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown
Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:318)
	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:337)
	at
org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:266)
	at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:141)
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:242)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:693)
	at
org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:463)
	at
org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:261)
	at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:141)
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:272)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:501)
	at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:147)
	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:163)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
	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:163)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:656)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
	at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
	at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
	at org.mortbay.http.HttpServer.service(HttpServer.java:863)
	at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
	at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
Caused by:
org.apache.avalon.framework.configuration.ConfigurationException: Error
using source cocoon:/about/pressrelease/linkmap-index.html
	at
org.apache.cocoon.components.modules.input.XMLFileModule.getContextObject(XMLFileModule.java:323)
	at
org.apache.cocoon.components.modules.input.AbstractJXPathModule.getAttribute(AbstractJXPathModule.java:226)
	at
org.apache.cocoon.components.modules.input.AbstractMetaModule.get(AbstractMetaModule.java:385)
	at
org.apache.cocoon.components.modules.input.AbstractMetaModule.getValue(AbstractMetaModule.java:286)
	at
org.apache.cocoon.components.modules.input.SimpleMappingMetaModule.getAttribute(SimpleMappingMetaModule.java:205)
	at
org.apache.cocoon.components.language.markup.xsp.XSPModuleHelper.get(XSPModuleHelper.java:158)
	... 74 more
Caused by: org.apache.cocoon.ResourceNotFoundException: No pipeline
matched request: abs-linkmap
	at
org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:473)
	at
org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:163)
	at
org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:128)
	at
org.apache.cocoon.components.source.SourceUtil.toDOM(SourceUtil.java:322)
	at
org.apache.cocoon.components.modules.input.XMLFileModule$DocumentHelper.getDocument(XMLFileModule.java:159)
	at
org.apache.cocoon.components.modules.input.XMLFileModule.getContextObject(XMLFileModule.java:319)
	... 79 more

-------------------------------------------------------
I believe the maps are linked correctly. Do I read something wrong?

In the logs, most suspicious looks to me the line 

WARN    (2004-01-18) 19:24.18:938   [sitemap]
(/NewConficio/about/pressrelease/index.html)
PoolThread-4/ExcaliburComponentManager: disposing of handler for
unreleased component. role
[org.apache.cocoon.transformation.TransformerSelector]

But I have no glue if this is any indication. 

Thanks
K<o>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message