On Wed, 2008-01-16 at 09:35 +0000, Philip Aston wrote:
> Thorsten Scherler wrote:
> > On Sun, 2008-01-13 at 18:39 +0000, Philip Aston wrote:
> >> ...
> >>
> >> <all label="All documentation" tab="project">
> >> <all_site label="Whole Site HTML" href="site.html"/>
> >> <all_site_pdf label="Whole Site PDF" href="site.pdf"/>
> >> </all>
This should be:
<all label="All documentation" tab="project">
<whole_site_html label="Wholesite HTML" href="wholesite.html"/>
<whole_site_pdf label="Wholesite PDF" href="wholesite.pdf"/>
</all>
> >>
> >> fails with broken links of the form:
> >>
> >> <broken-links>
> >> <link message="/opt/forrest/apache-forrest-0.8/main/webapp/. (Is a
> >> directory)" uri="site.pdf">
> >> <referrer uri="linkmap.html"/>
> >> ...
> >>
> >>
> >> Any ideas on what I might be doing wrong, or points as to how to track
> >> this down?
> >
> > If you do forrest run and click on the link what is happening?
>
> "Internal Server Error"
> Message: null
> Cause: /opt/forrest/apache-forrest-0.8/main/webapp (Is a directory)
>
> > Can you post the exception?
>
> See below.
>
> I've double checked all links to "site:g3/getting-started/properties".
> These work fine. The relevant section of my site.xml is:
Meaning if you comment this section of the site, you can generate the
whole site (after applying the patch from FOR-733)?
>
> <g3 label="The Grinder 3" href="g3/" tab="manual">
> <whats-new label="What's new?" href="whats-new.html"/>
> <features label="Features" href="features.html"/>
> <getting-started label="Getting started" >
> <getting-started-intro label="Introduction"
> href="getting-started.html">
> <processes href="#The+Grinder+processes"/>
> </getting-started-intro>
> <properties label="Properties" href="properties.html"/>
> ...
...
> Caused by:
> org.apache.cocoon.components.modules.input.InputModuleAttributeException:
> Error accessing attribute 'g3/getting-started/properties' from input
> module 'site'. Error using source null
> at
> org.apache.cocoon.components.modules.input.InputModuleHelper.get(InputModuleHelper.java:110)
...
> Caused by: org.apache.cocoon.ProcessingException: Unable to get
> transformer handler for file:/opt/forrest/apache-forrest-0.8/main/webapp/
> at <map:serialize type="xml"> -
> file:/opt/forrest/apache-forrest-0.8/main/webapp/aggregate.xmap:68:36
> at <map:transform> -
> file:/opt/forrest/apache-forrest-0.8/main/webapp/aggregate.xmap:65:83
> at <map:generate> -
> file:/opt/forrest/apache-forrest-0.8/main/webapp/aggregate.xmap:64:52
> at
> org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:338)
> at
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:354)
> at
> org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:614)
> at
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:459)
> at
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInternal(AbstractProcessingPipeline.java:473)
> at
> org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:276)
> at
> org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:146)
> at
> org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:65)
> at
> org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:159)
> at
> org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSourceResolver.java:189)
> at
> org.apache.cocoon.components.modules.input.XMLFileModule$DocumentHelper.getDocument(XMLFileModule.java:175)
> at
> org.apache.cocoon.components.modules.input.XMLFileModule.getContextObject(XMLFileModule.java:379)
> ... 111 more
> Caused by: org.apache.excalibur.xml.xslt.XSLTProcessorException:
> Exception when creating Transformer from
> file:/opt/forrest/apache-forrest-0.8/main/webapp/
> at
> org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:290)
> at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.cocoon.core.container.handler.PoolableComponentHandler$ProxyHandler.invoke(PoolableComponentHandler.java:147)
> at $Proxy3.getTransformerHandlerAndValidity(Unknown Source)
> at
> org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:330)
> ... 122 more
> Caused by: org.apache.excalibur.source.SourceNotFoundException:
> file:/opt/forrest/apache-forrest-0.8/main/webapp/ doesn't exist.
> at
> org.apache.excalibur.source.impl.FileSource.getInputStream(FileSource.java:150)
> at
> org.apache.cocoon.components.xslt.TraxProcessor.sourceToSAX(TraxProcessor.java:298)
> at
> org.apache.cocoon.components.xslt.TraxProcessor.getTransformerHandlerAndValidity(TraxProcessor.java:239)
> ... 128 more
> Caused by: java.io.FileNotFoundException:
> /opt/forrest/apache-forrest-0.8/main/webapp (Is a directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at
> org.apache.excalibur.source.impl.FileSource.getInputStream(FileSource.java:146)
> ... 130 more
This exception seems to be caused by some resources that cannot be
found.
Now we need to pin down which it is.
salu2
--
Thorsten Scherler thorsten.at.apache.org
Open Source Java consulting, training and solutions