Saturday, January 23, 2016

Unresolved constraint error when installing bundles in Fuse

When installing a bundle in Fuse, it quite common  to encounter the Unresolved constraint error: missing requirement: osgi.wiring.package error.
This error is thrown when the packages imported using Felix plugin are in conflict or if the dependent bundles are not installed. 
The article in this link provides a detailed explanation on the cause and fixes for this error 
But for those looking for quick fix ,the following steps would be handy.
  • Use osgi:headers <> to list the manifest details of the bundle.
  • In the manifest details,check for packages are marked in Red in Import-Package Listing. These are the  candidates which potentially cause this error.
  • Verify if the bundle corresponding to the erroneous package is installed and started 
These  steps should help to resolve most of the unresolved constraint exception when installing a bundle.