You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Axel Arne Guicking <ma...@guicking.de> on 2001/06/11 13:25:31 UTC
C2: Java class as transformer
Hi,
I am using version 2.0a7 and want to add my own transformer which is a java
class (extending AbstractTransformer). The problems arising are:
1) Where do I have to add the transformer name and class name? Only in the
sitemap file or also in the cocoon.xconf (and how would it look like in
cocoon.xconf)?
2) When I put the class in the package org.apache.cocoon.transformation and
add the appropriate <map:transformer>...line in the sitemap all works well
but in my own package the IllegalAccessException "object ... is not a
Component" is thrown. Why that?
Any help will be appreciated!
Thanks,
Axel Guicking
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
AW: C2: Java class as transformer
Posted by Felix Knecht <fe...@payserv.ch>.
Hi Axel
> -----Ursprüngliche Nachricht-----
> Von: mail@guicking.de [mailto:mail@guicking.de]
> Gesendet: Montag, 11. Juni 2001 13:26
> An: cocoon-users@xml.apache.org
> Betreff: C2: Java class as transformer
>
>
> Hi,
> I am using version 2.0a7 and want to add my own transformer
> which is a java
> class (extending AbstractTransformer). The problems arising are:
>
> 1) Where do I have to add the transformer name and class
> name? Only in the
> sitemap file or also in the cocoon.xconf (and how would it
> look like in
> cocoon.xconf)?
Just add it in the sitemap.map under <map:transformers>.
Felix
>
> 2) When I put the class in the package
> org.apache.cocoon.transformation and
> add the appropriate <map:transformer>...line in the sitemap
> all works well
> but in my own package the IllegalAccessException "object ... is not a
> Component" is thrown. Why that?
>
> Any help will be appreciated!
>
> Thanks,
> Axel Guicking
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: C2: Java class as transformer
Posted by Axel Arne Guicking <ma...@guicking.de>.
OK. I got it finally. Looks like a path problem inside of Visual Age...
Axel
----- Original Message -----
From: "Jörn Heid" <he...@fh-heilbronn.de>
To: <co...@xml.apache.org>; "Axel Arne Guicking" <ma...@guicking.de>
Sent: Monday, June 11, 2001 1:29 PM
Subject: AW: C2: Java class as transformer
> Yesterday I have written my own transformer.
> I took the XIncludeTransformer and used all public methods and implemented
> all interfaces. I used my own package and put the class in
WEB-INF/classes.
> And it works for me ;)
>
> -----Ursprüngliche Nachricht-----
> Von: Axel Arne Guicking [mailto:mail@guicking.de]
> Gesendet: Montag, 11. Juni 2001 13:26
> An: cocoon-users@xml.apache.org
> Betreff: C2: Java class as transformer
>
>
> Hi,
> I am using version 2.0a7 and want to add my own transformer which is a
java
> class (extending AbstractTransformer). The problems arising are:
>
> 1) Where do I have to add the transformer name and class name? Only in the
> sitemap file or also in the cocoon.xconf (and how would it look like in
> cocoon.xconf)?
>
> 2) When I put the class in the package org.apache.cocoon.transformation
and
> add the appropriate <map:transformer>...line in the sitemap all works well
> but in my own package the IllegalAccessException "object ... is not a
> Component" is thrown. Why that?
>
> Any help will be appreciated!
>
> Thanks,
> Axel Guicking
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
AW: C2: Java class as transformer
Posted by Jörn Heid <he...@fh-heilbronn.de>.
Yesterday I have written my own transformer.
I took the XIncludeTransformer and used all public methods and implemented
all interfaces. I used my own package and put the class in WEB-INF/classes.
And it works for me ;)
-----Ursprüngliche Nachricht-----
Von: Axel Arne Guicking [mailto:mail@guicking.de]
Gesendet: Montag, 11. Juni 2001 13:26
An: cocoon-users@xml.apache.org
Betreff: C2: Java class as transformer
Hi,
I am using version 2.0a7 and want to add my own transformer which is a java
class (extending AbstractTransformer). The problems arising are:
1) Where do I have to add the transformer name and class name? Only in the
sitemap file or also in the cocoon.xconf (and how would it look like in
cocoon.xconf)?
2) When I put the class in the package org.apache.cocoon.transformation and
add the appropriate <map:transformer>...line in the sitemap all works well
but in my own package the IllegalAccessException "object ... is not a
Component" is thrown. Why that?
Any help will be appreciated!
Thanks,
Axel Guicking
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>