Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Equinox system bundle not exporting packages in embedded scenario.
Equinox system bundle not exporting packages in embedded scenario. [message #779844] Mon, 16 January 2012 16:49
clyde lo is currently offline clyde loFriend
Messages: 1
Registered: January 2012
Junior Member
HI All,

I am having some problem with system bundle not exporting packages correctly.

Current Setup :
*Osgi framework embedded inside an existing server application. ApplicationServer is started in spring-like manner.
*Osgi framework programmatically started as part of a Spring bean initalisation. Logs report fmk started ok and systembundle ACTIVE. However when I inspect exported packages in fmk, none is exported by system bundle. Sad

osgi> ss
Framework is launched.
id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.5.1.R35x_v20090827

osgi> packages 0
No exported packages

My code:

//Called as part of Spring Bean init
public void initialise() {"Starting OSGI framework");
    FrameworkFactory frameworkFactory = ServiceLoader.load(FrameworkFactory.class).iterator().next();
    Map<String, String> config = new HashMap<String, String>();
    config.put("osgi.console", "1234");
    config.put(Constants.FRAMEWORK_STORAGE, "osgilogs/");
    config.put(Constants.FRAMEWORK_STORAGE_CLEAN, "onFirstInit");
    Framework framework = frameworkFactory.newFramework(config);
    try {
    } catch (BundleException e) {
      logger.error("Fail to start osgi framework.", e);
    }"OSGI started");

Previous Topic:p2 installer
Next Topic:Being notified when a bundle throws an exception - OSGi - Helios
Goto Forum:

Current Time: Wed Dec 01 14:56:39 GMT 2021

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

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

Back to the top