cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <Ralph.Go...@digitalinsight.com>
Subject RE: Serviceable vs Composable
Date Wed, 26 Nov 2003 23:35:45 GMT
Never mind. Once I added that it implements Component it worked fine.

Ralph

> -----Original Message-----
> From: Ralph Goers 
> Sent: Wednesday, November 26, 2003 3:06 PM
> To: 'users@cocoon.apache.org'
> Subject: 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
> 

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


Mime
View raw message