You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ralph Goers <Ra...@digitalinsight.com> on 2003/11/27 00:06:09 UTC

Serviceable vs Composable

I have a component that is declared in cocoon.xconf using 

<component class="xxx" role="xxx" logger="xxx">

In various places I was using the ComponentManager to look up this
component.  While updating to 2.1.3 I have changed everything to be
Serviceable instead of Composable.  Now I am getting a ClassCastException
when the lookup returns when I try to cast it to the correct class.  In
looking at what is returned it is a class like $Proxy0@822. It looks like it
was built by reflection as I see methods named m1, m2, etc which are all of
type java.lang.reflect.Method and internally have the names associated with
my class.

Is there something I am missing to get this to work?  This all worked fine
when it was Composable.

Ralph Goers



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org