ServiceLoader and OSGi?

2009-05-18 Thread Moloney, Tim M
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

Re: ServiceLoader and OSGi?

2009-05-18 Thread Richard S. Hall
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

RE: ServiceLoader and OSGi?

2009-05-18 Thread Moloney, Tim M
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

Re: ServiceLoader and OSGi?

2009-05-18 Thread Richard S. Hall
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

Re: ServiceLoader and OSGi?

2009-05-18 Thread Neil Bartlett
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

RE: ServiceLoader and OSGi?

2009-05-18 Thread Moloney, Tim M
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

Re: ServiceLoader and OSGi?

2009-05-18 Thread Todor Boev
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

RE: ServiceLoader and OSGi?

2009-05-19 Thread Moloney, Tim M
) 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

Re: ServiceLoader and OSGi?

2009-10-01 Thread Richard S. Hall
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

Re: ServiceLoader and OSGi?

2009-10-01 Thread Jeremias Maerki
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

Re: ServiceLoader and OSGi?

2009-10-01 Thread Richard S. Hall
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

Re: ServiceLoader and OSGi?

2009-11-03 Thread Jeremias Maerki
java.lang.ClassCastException > >>> at java.lang.Class.cast(Class.java:2990) > >>> at > >>> java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:345) > >>> ... 8 more > >>> > >>> > >>> Tim Molone