cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Ender <>
Subject Re: ClassCastException calling ServiceManager.lookup()
Date Tue, 25 May 2004 04:29:58 GMT

> On 24.05.2004 14:22, Christoph Ender wrote:
>> [...]
>> When trying to lookup   
>> org.apache.avalon.excalibur.datasource.DataSourceComponentSelector
>> via the ServiceManager I get a ClassCastException. I've copied over  
>> as much
>> code I could get from examples, but it looks like I'm still doing  
>> something wrong. I'll
>> post the relevant lines here:
>> [...]
>> The last line that assigns the ComponentSelector to selector fails  
>> with the
>> ClassCastExceoption.

Am Dienstag, 25.05.04 um 01:05 Uhr schrieb Joerg Heinicke:
> A ServiceManager does not return a ComponentSelector, but a  
> ServiceSelector, so you must cast to SS instead of CS. Even if the  
> implementation class only implements CS this works, as a wrapper is  
> build around it.

Thank you VERY much. I've been using a few lines from the BlobSource,  
knowing that BlobSource doesn't work in the current version (just found  
that on 

Again, thanks for your quick help.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message