Why are my bundles not working?

Sometimes you spend time developing and testing your new bundle using the runtime workbench launched from the same eclipse, and everything is fine… until some user installs that bundle and finds that it does… nothing!

The OSGi console is a great help in such cases. The `diag` command can tell you what’s wrong. Usually it is a dependency that is missing.

Start by launching eclipse from the command line with the -console command line option.

Now, just diag your.bundle.id, and you’ll see eclipse telling you what’s wrong.

About these ads

  1. Yes, but then no.

    Because p2 now will forbid the installation of the bundle if all its dependencies are resolved, and you won’t even be able to start it with the console.






Follow

Get every new post delivered to your Inbox.

%d bloggers like this: