You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Erwin Hogeweg <er...@me.com> on 2016/07/02 15:48:18 UTC

4.0.5 - Feature - bundle start="false" not working?

Hi,

I believe I am missing something here. I mark a bundle start as false:

	<bundle start-level="41" start="false">mvn:<theBundle_groupId>/<theBunlde_artifactId/${theBundle.version}</bundle>

But when it is loaded in karaf it is still active:

	66 | Active   |  41 | 4.0.0.SNAPSHOT_buildDateTime | Test Simulator

I set the start level to 41 to make sure I am picking up the right feature version. There are no dependencies on this bundle.

Is there anything else I need to do? I checked the manual, but I didn’t see it.


Thanks,

Erwin


Re: 4.0.5 - Feature - bundle start="false" not working?

Posted by Erwin Hogeweg <er...@me.com>.
Thanks JB,

This bundle does not provide any capabilities.

Below the bundle's manifest.

Manifest-Version: 1.0
Bnd-LastModified: 1467470313061
Build-Jdk: 1.8.0_92
Built-By: erwin
Bundle-Activator: my.dvr.simulator.Activator
Bundle-Description: Simulates the DVR.
Bundle-ManifestVersion: 2
Bundle-Name: DVR Simulator
Bundle-SymbolicName: my.driver.dvr.xtralis.simulator
Bundle-Version: 4.0.0.SNAPSHOT_buildDateTime
Created-By: Apache Maven Bundle Plugin
Export-Package: my.dvr.simulator;version="4.0.0.SNAPSHOT_bu
 ildDateTime"
Import-Package: my.core.comm;version="[4.0,5)",org.apache.c
 ommons.logging,org.osgi.framework;version="1.6.0",org.osgi.service.cm;v
 ersion="1.2.0",org.osgi.service.event;version="1.2.0",my.c
 ore;version="[4.0,5)"
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.7))"
Tool: Bnd-2.3.0.201405100607


Regards,

Erwin


> On Jul 2, 2016, at 15:19, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
> 
> Hi Erwin,
> 
> In Karaf 4, the feature resolver can start a bundle anyway if it provides a capability required by another bundle or feature.
> 
> It would be the case. What's your req/cap in the feature ?
> 
> Regards
> JB
> 
> On 07/02/2016 05:48 PM, Erwin Hogeweg wrote:
>> Hi,
>> 
>> I believe I am missing something here. I mark a bundle start as false:
>> 
>> <bundle start-level="41" start="false">mvn:<theBundle_groupId>/<theBunlde_artifactId/${theBundle.version}</bundle>
>> 
>> But when it is loaded in karaf it is still active:
>> 
>> 66 | Active   |  41 | 4.0.0.SNAPSHOT_buildDateTime | Test Simulator
>> 
>> I set the start level to 41 to make sure I am picking up the right
>> feature version. There are no dependencies on this bundle.
>> 
>> Is there anything else I need to do? I checked the manual, but I didn’t
>> see it.
>> 
>> 
>> Thanks,
>> 
>> Erwin
>> 
> 
> -- 
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com


Re: 4.0.5 - Feature - bundle start="false" not working?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Erwin,

In Karaf 4, the feature resolver can start a bundle anyway if it 
provides a capability required by another bundle or feature.

It would be the case. What's your req/cap in the feature ?

Regards
JB

On 07/02/2016 05:48 PM, Erwin Hogeweg wrote:
> Hi,
>
> I believe I am missing something here. I mark a bundle start as false:
>
> <bundle start-level="41" start="false">mvn:<theBundle_groupId>/<theBunlde_artifactId/${theBundle.version}</bundle>
>
> But when it is loaded in karaf it is still active:
>
> 66 | Active   |  41 | 4.0.0.SNAPSHOT_buildDateTime | Test Simulator
>
> I set the start level to 41 to make sure I am picking up the right
> feature version. There are no dependencies on this bundle.
>
> Is there anything else I need to do? I checked the manual, but I didn\u2019t
> see it.
>
>
> Thanks,
>
> Erwin
>

-- 
Jean-Baptiste Onofr�
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com