You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joerg Heinicke <jh...@virbus.de> on 2003/09/13 06:47:30 UTC
Re: Migration from Cocoon 2.0 to 2.1 fails when it comes to i18n
- error in sitemap
From the error message the i18n transformer was simply not declared.
The sitemap snippet you sent was a bit difficult to read because of
missing line breaks, but at least it must look similar to this one:
<map:transformers default="xslt">
<map:transformer name="i18n" logger="sitemap.transformer.i18n"
src="org.apache.cocoon.transformation.I18nTransformer">
<catalogues default="messages">
<catalogue id="messages" name="messages"
location="translations"/>
</catalogues>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
</map:transformers>
What's different: map:transformers surrounds all transformer
declarations and is not closed immediately (but this could be simply a
typo here).
The same can be found in the samples i18n sitemap:
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/webapp/samples/i18n/sitemap.xmap?rev=1.6&content-type=text/vnd.viewcvs-markup
Joerg
Stephan Kassanke wrote:
> Dear all,
>
> I just migrated from C2.0 to C2.1. Unfortunately, I cannot view my site due
> to the following error:
>
> Internal Server Error
> Message: Failed to load sitemap from
> file:/var/lib/tomcat4/webapps/cocoon/orw/sitemap.xmap
>
> Description: org.apache.cocoon.ProcessingException: Failed to load sitemap
> from file:/var/lib/tomcat4/webapps/cocoon/orw/sitemap.xmap:
> org.apache.avalon.framework.configuration.ConfigurationException: Type
> 'i18n' is not defined for 'transform' at
> file:/var/lib/tomcat4/webapps/cocoon/orw/sitemap.xmap:104:36
>
> Sender: org.apache.cocoon.servlet.CocoonServlet
>
> Source: Cocoon Servlet
>
> Request URI
>
> orw/
> cause
>
> org.apache.avalon.framework.configuration.ConfigurationException: Type
> 'i18n' is not defined for 'transform' at
> file:/var/lib/tomcat4/webapps/cocoon/orw/sitemap.xmap:104:36
> request-uri
>
> /cocoon/orw/The i18n samples coming with the distribution do work, so I
> guess I have an error in my subsitemap in cocoon/orwi changed all the
> namespaces in the documents to
> xmlns:i18n="http://apache.org/cocoon/i18n/2.1" and updated my sitemap to the
> syntax proposed in the samples. <map:transformers default="xslt"/>
> <map:transformer name="i18n" logger="sitemap.transformer.i18n"
> src="org.apache.cocoon.transformation.I18nTransformer"> <catalogues
> default="messages"> <catalogue id="messages" name="messages"
> location="translations"/> </catalogues>
> <cache-at-startup>true</cache-at-startup> </map:transformer>The
> catalogues are in a subdirectory "translations" and are named messages.xml,
> messages_de.xml and messages_en.xml. The matches in the sitemap follow the
> scheme:<map:match pattern="index.xsp"> <map:generate type="serverpages"
> src="index.xsp"/> <map:transform type="i18n" />
> <map:transform src="index.xsl"/> <map:serialize/> </map:match>I
> already tried to extend the syntax to include the locale
> attribute:...<map:transform type="i18n"><map:parameter name="locale"
> value="{../locale}"/></map:transform>...with no succes yet. All I get is the
> error message above. Any ideas?best regards,Stephan ---Full stack
> traceInternal Server ErrorMessage: Failed to load sitemap from
> file:/var/lib/tomcat4/webapps/cocoon/orw/sitemap.xmapDescription:
> org.apache.cocoon.ProcessingException: Failed to load sitemap from
> file:/var/lib/tomcat4/webapps/cocoon/orw/sitemap.xmap:
> org.apache.avalon.framework.configuration.ConfigurationException: Type
> 'i18n' is not defined for 'transform' at
> file:/var/lib/tomcat4/webapps/cocoon/orw/sitemap.xmap:104:36Sender:
> org.apache.cocoon.servlet.CocoonServletSource: Cocoon ServletRequest
> URIorw/causeorg.apache.avalon.framework.configuration.ConfigurationException
> : Type 'i18n' is not defined for 'transform' at
> file:/var/lib/tomcat4/webapps/cocoon/orw/sitemap.xmap:104:36request-uri/cocoon/orw/full
> exception chain stacktraceOriginal Exception:
> org.apache.avalon.framework.configuration.ConfigurationException: Type
> 'i18n' is not defined for 'transform' at
> file:/var/lib/tomcat4/webapps/cocoon/orw/sitemap.xmap:104:36
> at
> org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.getTypeForStat
> ement(DefaultTreeBuilder.java:574)
... stacktrace snipped ...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org