Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [equinox-dev] EventAdmin ServiceReference is always null?


The Eclipse SDK does NOT include all of the Equinox bundles that are availalbe as part of 3.2.  It has only what is needed for the SDK itself.  All Equinox 3.2 bundles can be fetched from the Equinox download site as Dennis points out.  Note that there is an Equinox feature zip on that site that includes all the official bundles for 3.2 (its the first download in the Bundles section).  

Jeff



"O'Flynn, Dennis" <Dennis.OFlynn@xxxxxxxxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx

05/12/2006 09:45 AM

Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

To
"Equinox development mailing list" <equinox-dev@xxxxxxxxxxx>
cc
Subject
RE: [equinox-dev] EventAdmin ServiceReference is always null?





It appears that 3.2RC3 does not ship with the EventAdmin service.  You will need to download (http://download.eclipse.org/eclipse/equinox/) the service separately and drop it into your plugin folder.  I did this using org.eclipse.equinox.event_1.0.0.v20060411 and everything works as excepted.
 
 



From: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Cameron Ross
Sent:
Friday, May 12, 2006 9:28 AM
To:
equinox-dev@xxxxxxxxxxx
Subject:
[equinox-dev] EventAdmin ServiceReference is always null?

 
Hello,
 
I am unable to obtain a valid ServiceReference for the EventAdmin service shipped with 3.2RC3.  The start method in my Activator class looks like this:
 
public void start(BundleContext context) throws Exception {
   ServiceReference serviceRef = context.getServiceReference(EventAdmin.class.getName());    

    // serviceRef is always null!
}

 
The following items are selected in both the Eclipse "Window->Preferences->Plug-in Development->Target Platform->Plug-ins" and "Run->Run...->Plug-ins->Target Platform" areas:
  - org.eclipse.equinox.log(1.0.0.v20060206)
  - org.eclipse.osgi(3.2.0.v20060505)
  - org.eclipse.osgi.services(3.1.100.20060426)
 
My manifest contains the following header and everything compiles nicely:
    Import-Package: org.osgi.framework, org.osgi.service.event, org.osgi.util.tracker
 
I'm running Eclipse 3.2-RC3 (Version 3.2.0, Build ID I20060505-1306) with Sun's JRE 1.5.0_06 on Windows XP Professional SP2.  
 
Note that I am able to get a ServiceReference to the LogService.  Any help is greatly appreciated.
 
Thanks,
Cameron Ross.

 

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. _______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Back to the top