OSGi Feature Installation - no refresh of Fragment-Host bundle upon installation of fragment bundle
Issue
- We install an OSGi feature that deploys a Host bundle.
- We next install another OSGi feature that deploys a Fragment bundle for the above Host bundle.
The Fragment bundle remains in Installed state and osgi:list does neither show the Fragment nor host bundle correctly.
osgi:list -l
...
[ 252] [Active ] [Created ] [ ] [ 60] mvn:org.example.osgi/consoleLog/1.0.0-SNAPSHOT
[ 253] [Installed ] [ ] [ ] [ 60] mvn:org.example.osgi/consoleLog-blueprint/1.0.0-SNAPSHOT
We need to manually refresh the Host bundle for the Fragment bundle to move to Resolved state.
osgi:refresh 252
osgi:list -l
[ 252] [Active ] [Created ] [ ] [ 60] mvn:org.example.osgi/consoleLog/1.0.0-SNAPSHOT, Fragments: 253
[ 253] [Resolved ] [ ] [ ] [ 60] mvn:org.example.osgi/consoleLog-blueprint/1.0.0-SNAPSHOT, Hosts: 252
Environment
- JBoss Fuse 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
