Get Osgi service references [message #176293] |
Tue, 06 January 2004 13:43  |
Eclipse User |
|
|
|
Originally posted by: ciccio.smilzo.net
Hi all,
I'm new at Osgi and Eclipse, and I can't understand how to do a simple
operation...
If I create a new osgi bundle and in an overridden activator start method
I try to invoke the BundleContext.getServiceReferences() method, a
LinkageError is thrown:
java.lang.LinkageError: loader constraints violated when linking
org/osgi/framework/BundleContext class
Should I use another method provided by some eclipse internal class?
Thank you in advance,
Fabio
|
|
|
Re: Get Osgi service references [message #178215 is a reply to message #176293] |
Sun, 11 January 2004 15:35  |
Eclipse User |
|
|
|
In the Manifest file you need to add:
Import-Package: org.osgi.framework
Regards
Sten
"Fabio Corneti" <ciccio@smilzo.net> wrote in message
news:pan.2004.01.06.18.43.25.672075@smilzo.net...
> Hi all,
> I'm new at Osgi and Eclipse, and I can't understand how to do a simple
> operation...
>
> If I create a new osgi bundle and in an overridden activator start method
> I try to invoke the BundleContext.getServiceReferences() method, a
> LinkageError is thrown:
>
> java.lang.LinkageError: loader constraints violated when linking
> org/osgi/framework/BundleContext class
>
> Should I use another method provided by some eclipse internal class?
>
> Thank you in advance,
> Fabio
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04664 seconds