I have a very simple service provider that works outside of OSGi.
I tried using it in Felix but it fails with a ClassCastException.
Is this somehow related to the different class loaders in the different
bundles?
Any suggestions on how to get past this?
Thanks.
Tim Moloney The r
On 5/18/09 9:31 AM, Moloney, Tim M wrote:
I have a very simple service provider that works outside of OSGi.
I tried using it in Felix but it fails with a ClassCastException.
Is this somehow related to the different class loaders in the different
bundles?
Probably.
Any suggestions on how
09 10:11
> To: users@felix.apache.org
> Subject: Re: ServiceLoader and OSGi?
>
> On 5/18/09 9:31 AM, Moloney, Tim M wrote:
> > I have a very simple service provider that works outside of OSGi.
> >
> > I tried using it in Felix but it fails with a ClassCastException
ogress depends on
the
(941) 377-6775 x208unreasonable man. - George
Bernard Shaw
-Original Message-
From: Richard S. Hall [mailto:he...@ungoverned.org]
Sent: Monday, May 18, 2009 10:11
To: users@felix.apache.org
Subject: Re: ServiceLoader and OSGi?
On 5/18/0
e man. - George
> Bernard Shaw
>
>
>> -Original Message-
>> From: Richard S. Hall [mailto:he...@ungoverned.org]
>> Sent: Monday, May 18, 2009 10:11
>> To: users@felix.apache.org
>> Subject: Re: ServiceLoader and OSGi?
>>
>> On 5/18/09 9:31 AM, Mo
George Bernard Shaw
> -Original Message-
> From: Neil Bartlett [mailto:njbartl...@gmail.com]
> Sent: Monday, May 18, 2009 16:39
> To: users@felix.apache.org
> Subject: Re: ServiceLoader and OSGi?
>
> Tim,
>
> I see you are using DynamicImport-Package to forc
18, 2009 16:39
To: users@felix.apache.org
Subject: Re: ServiceLoader and OSGi?
Tim,
I see you are using DynamicImport-Package to force visibility of the
implementation class by the FooFactory in the API bundle.
This is very dangerous. Your API bundle is going out and finding
exported classes fro
) 377-6775 x208unreasonable man. - George
Bernard Shaw
> -Original Message-
> From: Todor Boev [mailto:t.b...@prosyst.bg]
> Sent: Tuesday, May 19, 2009 02:36
> To: users@felix.apache.org
> Subject: Re: ServiceLoader and OSGi?
>
> Tim,
> Maybe
Sent: Monday, May 18, 2009 10:11
To: users@felix.apache.org
Subject: Re: ServiceLoader and OSGi?
On 5/18/09 9:31 AM, Moloney, Tim M wrote:
I have a very simple service provider that works outside of OSGi.
I tried using it in Felix but it fails with a ClassCastException.
Is this somehow re
ch Real-time Systems Laboratory the world; the unreasonable one
> > persists
> > 2015 Cattlemen Roadin trying to adapt the world to
> > himself.
> > Sarasota, FL 34232Therefore all progress depends on
> > the
> > (941) 37
ernard Shaw
-Original Message-
From: Richard S. Hall [mailto:he...@ungoverned.org]
Sent: Monday, May 18, 2009 10:11
To: users@felix.apache.org
Subject: Re: ServiceLoader and OSGi?
On 5/18/09 9:31 AM, Moloney, Tim M wrote:
I have a very simple service provider th
java.lang.ClassCastException
> >>> at java.lang.Class.cast(Class.java:2990)
> >>> at
> >>> java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345)
> >>> ... 8 more
> >>>
> >>>
> >>> Tim Molone
12 matches
Mail list logo