Search code examples
osgibundlelifecycleequinoxp2

OSGi equinox bundle stays always in the state "RESOLVED"


I've created one main bundle in which one I've installed the equinox p2. Then I export it to obtain an executable. My executable works correctly.

I've also created one other Bundle that interacts with the first one. In eclipse, if I create a product configuration with these 2 bundles and run the product, everything works.

After that, I export my second Bundle as a "deployable feature" and then I install this bundle wihtin my application via the "help->install new software". I'm able to install it, however my Bundle stays always in the state "RESOLVED" even if I restart my application. I'd like to set the state as "ACTIVE".

Do you know if I can configure somehting to autostart my bundle as I did in my "Product configuration"? Or is there an another solution?


Solution

  • Try to start your bundle manually with the commandline command "start ". It seems that there are some problems in BundleActivator of your bundle. You should get some logs (errors/warnings).