You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Achim Nierbeck (JIRA)" <ji...@apache.org> on 2014/06/25 17:01:40 UTC

[jira] [Updated] (KARAF-3069) Karaf is missing the osgi.ee capabilities when using equinox as framework

     [ https://issues.apache.org/jira/browse/KARAF-3069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Achim Nierbeck updated KARAF-3069:
----------------------------------

    Description: 
Consequences of this bug:
The new maven bundle plugin 2.5.0 creates a new standard OSGi header:
Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.6))"

So such bundles can only be resolved if the capability is present. Because of this bug such bundles can not be resolved in karaf by default.

How to reproduce:
Load and unpack karaf 3.0.1
Set "framework=equinox" in etc/config.properties
Start bin/karaf
In the console type "capabilities 0 | grep osgi.ee"
It will show no matching capability.

Problem:
The problem is that we use a variable ${services-${karaf.framework}} which does not exist if the framework is equinox.

Workaround:
Remove the line ${services-${karaf.framework}} and the ", \" in the line above.



  was:
Consequences of this bug:
The new maven bundle plugin 3.5.0 creates a new standard OSGi header:
Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.6))"

So such bundles can only be resolved if the capability is present. Because of this bug such bundles can not be resolved in karaf by default.

How to reproduce:
Load and unpack karaf 3.0.1
Set "framework=equinox" in etc/config.properties
Start bin/karaf
In the console type "capabilities 0 | grep osgi.ee"
It will show no matching capability.

Problem:
The problem is that we use a variable ${services-${karaf.framework}} which does not exist if the framework is equinox.

Workaround:
Remove the line ${services-${karaf.framework}} and the ", \" in the line above.




> Karaf is missing the osgi.ee capabilities when using equinox as framework
> -------------------------------------------------------------------------
>
>                 Key: KARAF-3069
>                 URL: https://issues.apache.org/jira/browse/KARAF-3069
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 3.0.1, 2.3.5
>            Reporter: Christian Schneider
>             Fix For: 3.0.2, 2.3.6
>
>
> Consequences of this bug:
> The new maven bundle plugin 2.5.0 creates a new standard OSGi header:
> Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.6))"
> So such bundles can only be resolved if the capability is present. Because of this bug such bundles can not be resolved in karaf by default.
> How to reproduce:
> Load and unpack karaf 3.0.1
> Set "framework=equinox" in etc/config.properties
> Start bin/karaf
> In the console type "capabilities 0 | grep osgi.ee"
> It will show no matching capability.
> Problem:
> The problem is that we use a variable ${services-${karaf.framework}} which does not exist if the framework is equinox.
> Workaround:
> Remove the line ${services-${karaf.framework}} and the ", \" in the line above.



--
This message was sent by Atlassian JIRA
(v6.2#6252)