You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by GUILLAUME Gabriel FTRD/DIH/HDM REN <ga...@rd.francetelecom.com> on 2003/06/23 13:04:32 UTC
Failed to compile sitemap when using map:call in error handlers ?
Hi folks,
I tried to compile the following (dummy) pipeline with Cocoon 2.0.4 :
...
<map:resources>
<map:resource name="test">
<map:serialize/>
</map:resource>
</map:resources>
...
<map:pipeline>
<map:match pattern="dummy">
<map:generate src="dummy.html"/>
<map:serialize/>
</map:match>
<map:handle-errors>
<map:transform src="stylesheets/system/error2html.xsl"/>
<map:call resource="test"/>
</map:handle-errors>
</map:pipeline>
The compilation of the sitemap failed with the following message :
Exception: org.apache.cocoon.components.language.LanguageException: Error compiling proxy_xmap: Line 829, column 91: variable cocoon_view not found in class org.apache.cocoon.www.proxy_xmap Line 0, column 0: 1 error
If I replace the map:call by a map:serialize, the compilation works fine.
Is it forbidden to use resource inside an error handler ?
Thanks for your help.
Gabriel
PS : I'm using 2.0.4 on Tomcat 3.3.1a with SUN jdk 1.4.0 on W2k
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org