On this page:
Symptoms — What Goes Wrong
A plugin fails to load at runtime, and the log contains an
OsgiContainerException with a
BundleException as its root cause. For example:
When your plugin declares a package import, at runtime it must find another OSGi bundle that exports a compatible version (according to the specified version constraints) of the same package. If such a bundle can't be found, the plugin will fail to load.
First, verify that another bundle does export the package. If you're using the SDK, one way to do this is to look at the Felix web console (available at
plugins/servlet/system/console), which allows you to explore the bundles available in the system. If another bundle does export the package, verify that the version constraints (shown in the error log) are met by the bundle. If no bundle exports the package, you may need to provide it by packaging it within your plugin and removing the package import.