-
1. Re: Installing bundles with Fab - Unknown protocol: fab
ffang Aug 20, 2013 11:13 PM (in response to tellisnz)Hi,
yeah, this is caused by features service is up and so install features but the fab service isn't up yet at this stage.
You can specify a start-level for your "myfeature", something like
<feature name="myfeature" version="${project.version}"
start-level='80'>
to see if it helps.
We may need consider to put fabric-bundle related bundles into etc/startup.properties to ensure fab is available at more early stage, like we do for other deployers.
Freeman
-
2. Re: Installing bundles with Fab - Unknown protocol: fab
tellisnz Aug 21, 2013 3:47 AM (in response to ffang)Hi Freeman,
The start-level='80' didn't help, I'm not sure if the karaf version in 60024 is actually using that, just looking at the doc on http://karaf.apache.org/manual/latest-2.3.x/users-guide/provisioning.html (see the red box under bundle start/stop) - or is the feature start level inherently different from the bundle start level?
Anyway, I had attempted putting together the necessary dependencies for fabric-bundle in my startup.properties earlier but gave up and went down the start level path, so your comment refocussed me on it. After a bit of fiddling, adding the following to my startup.properties loads the fabric-bundle early enough:
org/fusesource/fabric/fab/fab-osgi/7.2.0.redhat-024/fab-osgi-7.2.0.redhat-024.jar=10 org/fusesource/fabric/common-util/7.2.0.redhat-024/common-util-7.2.0.redhat-024.jar=10 org/ops4j/base/ops4j-base-net/1.2.2/ops4j-base-net-1.2.2.jar=10 org/ops4j/base/ops4j-base-lang/1.2.2/ops4j-base-lang-1.2.2.jar=10 org/ops4j/base/ops4j-base-util-property/1.2.2/ops4j-base-util-property-1.2.2.jar=10 org/ops4j/pax/swissbox/pax-swissbox-optional-jcl/1.3.1/pax-swissbox-optional-jcl-1.3.1.jar=10 org/ops4j/base/ops4j-base-monitors/1.2.2/ops4j-base-monitors-1.2.2.jar=10 org/ops4j/pax/swissbox/pax-swissbox-property/1.2.0/pax-swissbox-property-1.2.0.jar=10
So thanks for getting me on that path!
Cheers,
Tom