hi sylvain,

your transformer probably throws an exception in one of the lifecycle
methods (setup, initialize, whatever...). quickest way to find out (if not
obvious from the logs) is to set breakpoints on those methods (and maybe on
exceptions thown) and see what happens.


> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von [EMAIL PROTECTED]
> Gesendet: Donnerstag, 4. Dezember 2003 12:56
> An: [EMAIL PROTECTED]
> Betreff: error when using my own transformer
>
>
> Hello,
>
> I have created a new transformer called "RoleTransformer". It
> doesn't have lot of features at this moment: it simply adds some
> XML tags in a document.
>
> I have declared this new transformer in the main sitemap like:
> <map:transformer logger="sitemap.transformer.role" name="role"
> src="com.itservices.woc.transformation.RoleTransformer"/>
>
> And I use it in another sitemap:
> <map:transform type="role">
>       <map:parameter name="username" value="{request-param:name}"/>
> </map:transform>
>
> But it seems that Cocoon doesn't find it. The error below occurs.
>
> Do I have forget something?
>
> Thanks for any help
> Sylvain
>
> **error**
> ERROR   (2003-12-04) 12:41.09:390 Lookup of transformer for role
> 'role' failed.:
> org.apache.avalon.framework.component.ComponentException:
> transformers: ComponentSelector could not access the Component
> for hint [role] (key [role])
>       at
> org.apache.cocoon.webapps.authentication.components.PipelineAuthen
> ticator.authenticate(PipelineAuthenticator.java:199)
>       at
> org.apache.cocoon.webapps.authentication.components.DefaultAuthent
> icationManager.login(DefaultAuthenticationManager.java:238)
> etc...
> **error**
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to