Jean-Baptiste Onofré created KARAF-3092:
-------------------------------------------

             Summary: Remove ${services-${karaf.framework}} variables from 
org.osgi.framework.system.capabilities
                 Key: KARAF-3092
                 URL: https://issues.apache.org/jira/browse/KARAF-3092
             Project: Karaf
          Issue Type: Bug
          Components: karaf-core
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: 2.4.0, 4.0.0, 3.0.2, 2.3.6


The new versions of Felix maven-bundle-plugin (starting from 2.4.1 and 2.5.0) 
introduces a osgi.ee requirement in the META-INF generate for the client bundle.

If it works fine with the Felix framework, this requirement is not match for 
Equinox framework.

To avoid this problem, we should modify the etc/config.properties to remove the 
${services-${karaf.framework}} variable from 
org.osgi.framework.system.capabilities, meaning that:

{code}
org.osgi.framework.system.capabilities= \
 ${eecap-${java.specification.version}}, \
 
service-reference;effective:=active;objectClass=org.osgi.service.packageadmin.PackageAdmin,
 \
 
service-reference;effective:=active;objectClass=org.osgi.service.startlevel.StartLevel,
 \
 
service-reference;effective:=active;objectClass=org.osgi.service.url.URLHandlers,
 \
 ${services-${karaf.framework}}
{code}

becomes

{code}
org.osgi.framework.system.capabilities= \
 ${eecap-${java.specification.version}}, \
 
service-reference;effective:=active;objectClass=org.osgi.service.packageadmin.PackageAdmin,
 \
 
service-reference;effective:=active;objectClass=org.osgi.service.startlevel.StartLevel,
 \
 
service-reference;effective:=active;objectClass=org.osgi.service.url.URLHandlers
{code}



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

Reply via email to