You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Thorsten Scherler <th...@apache.org> on 2005/09/11 16:51:50 UTC
[views] nugget contracts broken
Hi all,
I have some problems with nugget contracts. It seems that the xinclude
is not working properly or does not get picked up on the last
transformation step. The *.page match contains the include but with
namespaces:
<forrest:contract name="content-feeder">
<forrest:properties contract="content-feeder">
<forrest:property xmlns:alias="http://www.w3.org/1999/XSL/Transform" xmlns:xi="http://www.w3.org/2001/XInclude" name="content-feeder">
...
</forrest:property>
</forrest:properties>
</forrest:contract>
Now on the *.html match I get the error.
ERROR (2005-09-11) 16:48.14:861 [access] (/index.html)
PoolThread-4/CocoonServlet: Internal Cocoon Problem
org.apache.cocoon.ProcessingException: Failed to process pipeline
at [cause location] - cocoon://prepare.include.xhtml.index:16:61
at <map:serialize type="xml"> -
file:/home/thorsten/apache/forrest-trunk/build/plugins/org.apache.forrest.plugin.internal.view/internal.xmap:219:36
at <map:serialize type="xhtml"> -
file:/home/thorsten/apache/forrest-trunk/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:255:36
at <map:transform> -
file:/home/thorsten/apache/forrest-trunk/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:254:72
at <map:transform> -
file:/home/thorsten/apache/forrest-trunk/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:251:61
at <map:generate> -
file:/home/thorsten/apache/forrest-trunk/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:250:46
at <map:mount> -
file:/home/thorsten/src/testSeed/build/tmp/output.xmap:38:152
at <map:mount> -
file:/guada/home/thorsten/apache/forrest-trunk/main/webapp/sitemap.xmap:554:113
at org.apache.cocoon.ProcessingException.throwLocated(Unknown
Source)
...
Caused by: javax.xml.transform.TransformerException:
java.lang.ClassCastException: org.apache.xpath.objects.XString
at
org.apache.cocoon.transformation.TraxTransformer.endDocument(Unknown
Source)
at
org.apache.cocoon.environment.internal.EnvironmentChanger.endDocument(Unknown Source)
at
org.apache.cocoon.sitemap.DefaultContentAggregator.generate(Unknown
Source)
... 56 more
Caused by: javax.xml.transform.TransformerException:
java.lang.ClassCastException: org.apache.xpath.objects.XString
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2416)
at
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392)
at
org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:246)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
I wrote a new siteinfo-meta contract and thought it is because of the
contract, but I then tried our feeder contract and that is not working
either.
I am debugging that now if somebody has an idea what is going on or
which recent changes are may the cause, please, speak up. ;-)
salu2
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
Re: [views] nugget contracts broken
Posted by Tim Williams <wi...@gmail.com>.
I was getting a similar error yesterday and build clean; build and
re-deployed all plugins and it magically worked. You probably tried
this already but doing that up front would have saved me some time so
I thought I'd throw it out there.
--tim
On 9/11/05, Thorsten Scherler <th...@apache.org> wrote:
> Hi all,
>
> I have some problems with nugget contracts. It seems that the xinclude
> is not working properly or does not get picked up on the last
> transformation step. The *.page match contains the include but with
> namespaces:
> <forrest:contract name="content-feeder">
> <forrest:properties contract="content-feeder">
> <forrest:property xmlns:alias="http://www.w3.org/1999/XSL/Transform" xmlns:xi="http://www.w3.org/2001/XInclude" name="content-feeder">
> ...
> </forrest:property>
> </forrest:properties>
> </forrest:contract>
>
> Now on the *.html match I get the error.
> ERROR (2005-09-11) 16:48.14:861 [access] (/index.html)
> PoolThread-4/CocoonServlet: Internal Cocoon Problem
> org.apache.cocoon.ProcessingException: Failed to process pipeline
> at [cause location] - cocoon://prepare.include.xhtml.index:16:61
> at <map:serialize type="xml"> -
> file:/home/thorsten/apache/forrest-trunk/build/plugins/org.apache.forrest.plugin.internal.view/internal.xmap:219:36
> at <map:serialize type="xhtml"> -
> file:/home/thorsten/apache/forrest-trunk/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:255:36
> at <map:transform> -
> file:/home/thorsten/apache/forrest-trunk/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:254:72
> at <map:transform> -
> file:/home/thorsten/apache/forrest-trunk/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:251:61
> at <map:generate> -
> file:/home/thorsten/apache/forrest-trunk/build/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap:250:46
> at <map:mount> -
> file:/home/thorsten/src/testSeed/build/tmp/output.xmap:38:152
> at <map:mount> -
> file:/guada/home/thorsten/apache/forrest-trunk/main/webapp/sitemap.xmap:554:113
> at org.apache.cocoon.ProcessingException.throwLocated(Unknown
> Source)
> ...
> Caused by: javax.xml.transform.TransformerException:
> java.lang.ClassCastException: org.apache.xpath.objects.XString
> at
> org.apache.cocoon.transformation.TraxTransformer.endDocument(Unknown
> Source)
> at
> org.apache.cocoon.environment.internal.EnvironmentChanger.endDocument(Unknown Source)
> at
> org.apache.cocoon.sitemap.DefaultContentAggregator.generate(Unknown
> Source)
> ... 56 more
> Caused by: javax.xml.transform.TransformerException:
> java.lang.ClassCastException: org.apache.xpath.objects.XString
> at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2416)
> at
> org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392)
> at
> org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:246)
> at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
>
> I wrote a new siteinfo-meta contract and thought it is because of the
> contract, but I then tried our feeder contract and that is not working
> either.
>
> I am debugging that now if somebody has an idea what is going on or
> which recent changes are may the cause, please, speak up. ;-)
>
> salu2
> --
> thorsten
>
> "Together we stand, divided we fall!"
> Hey you (Pink Floyd)
>
>