Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Get Osgi service references
Get Osgi service references [message #176293] Tue, 06 January 2004 13:43 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:[ANN] SWT Designer - Creating Custom Composites Demo
Next Topic:Want to try and fix a bug but at a loss as to how to proceed
Goto Forum:
  


Current Time: Sat Jul 19 09:40:57 EDT 2025

Powered by FUDForum. Page generated in 0.04664 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top