Matthias Müller wrote: > Hi there, > > i want to convert my C2.11 project to C2.2. While trying to generate a > JXTemplate i receive the following error: > > Unable to read Avalon configuration from 'sitemap.xmap'.; nested exception is > org.apache.avalon.framework.configuration.ConfigurationException: Unable to > create class for component with role > org.apache.cocoon.generation.Generator/jx with class: > org.apache.cocoon.generation.JXTemplateGenerator > > in the sitemap.xml i registered the generator like this: > > <map:generators> > <map:generator name="jx" > src="org.apache.cocoon.generation.JXTemplateGenerator" > logger="sitemap.generator.jx"/> > </map:generators> > > so, i don't know what i did wrong. doesn't the JXTemplateGenerator exists > anymore? > This generator still exists but has been moved to its own block and refactored a little bit. See: http://cocoon.apache.org/2.2/blocks/template/1.0/976_1_1.html
In 2.2 you don't necessarily need to declare the generator in your sitemap on your own. It's enough to have a dependency on cocoon-template-impl block and generator will be immediately visible to your sitemap. Be warned that there might be minor back-incompatibilities compared to the old JX generator. -- Grzegorz --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
