You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matthias Müller <py...@yahoo.de> on 2008/10/02 11:27:42 UTC
[C2.2] Where's the JXTemplateGenerator?
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?
regards, matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [C2.2] Where's the JXTemplateGenerator?
Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [C2.2] Where's the JXTemplateGenerator?
Posted by Alexander Daniel <al...@gmx.at>.
On 02.10.2008, at 11:27, 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?
>
> regards, matthias
The JXTemplateGenerator still exists and there is no need anymore to
define it in the map:components section of your sitemap because this
is already done by Cocoon 2.2. So simply remove the definition of the
JXTemplateGenerator in your sitemap and it should work.
You could also have a look at the tutorial "Your first Cocoon
application using Maven 2" [2] where the JXTemplateGenerator is used.
A list of names Cocoon 2.2 uses for the different sitemap components
can be found at [1]. Unfortunately it isn't complete yet.
Alex
[1] http://cocoon.apache.org/2.2/1347_1_1.html
[2] http://cocoon.apache.org/2.2/1159_1_1.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org