cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Ender <chrender-maillis...@spellbreaker.org>
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,  
not
knowing that BlobSource doesn't work in the current version (just found  
that on
http://archives.real-time.com/pipermail/cocoon-users/2004-March/ 
047774.html).

Again, thanks for your quick help.

Regards,
Christoph.


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


Mime
View raw message