[ 
https://issues.apache.org/jira/browse/KARAF-3703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14513209#comment-14513209
 ] 

Bernhard Schuhmann commented on KARAF-3703:
-------------------------------------------

Problem is an inconsistent package import/export of 
{{org.apache.felix.service.command}}. Felix exports it without {{status}}, but 
Karaf reexports it with (mandatory) {{status}}. Since ActiveMQ imports the 
package without {{status}}, the requirement can't be fulfilled and Karaf can't 
load the bundle. To fix it, remove the {{status}} from the export.

{noformat}
diff --git a/shell/console/pom.xml b/shell/console/pom.xml
index 28d3e46..7108d9f 100644
--- a/shell/console/pom.xml
+++ b/shell/console/pom.xml
@@ -172,7 +172,7 @@
                                
org.apache.karaf.shell.util;version=${project.version};-noimport:=true,
                             
org.apache.karaf.shell.util;version=2.3.0;-noimport:=true,
                             
org.apache.felix.gogo*;version=${felix.gogo.version};-noimport:=true,
-                            
org.apache.felix.service.command;version=${felix.gogo.version};status=provisional;mandatory:=status;-noimport:=true,
+                            
org.apache.felix.service.command;version=${felix.gogo.version};-noimport:=true,
                             
org.apache.felix.service.threadio;version=${felix.gogo.version};status=provisional;mandatory:=status;-noimport:=true,
                         </Export-Package>
                         <Private-Package>
{noformat}

> Unable to install ActiveMQ in Karaf 4 SNAPSHOT
> ----------------------------------------------
>
>                 Key: KARAF-3703
>                 URL: https://issues.apache.org/jira/browse/KARAF-3703
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.0.0
>            Reporter: Bernhard Schuhmann
>            Priority: Minor
>
> Feature {{activemq-broker-noweb}} gives the following error:
> {noformat}
> karaf@root()> feature:install activemq-broker-noweb 
> Error executing command: Unable to resolve root: missing requirement [root] 
> osgi.identity; osgi.identity=activemq-broker-noweb; type=karaf.feature; 
> version="[5.12.0.SNAPSHOT,5.12.0.SNAPSHOT]"; 
> filter:="(&(osgi.identity=activemq-broker-noweb)(type=karaf.feature)(version>=5.12.0.SNAPSHOT)(version<=5.12.0.SNAPSHOT))"
>  [caused by: Unable to resolve activemq-broker-noweb/5.12.0.SNAPSHOT: missing 
> requirement [activemq-broker-noweb/5.12.0.SNAPSHOT] osgi.identity; 
> osgi.identity=activemq; type=karaf.feature; 
> version="[5.12.0.SNAPSHOT,5.12.0.SNAPSHOT]" [caused by: Unable to resolve 
> activemq/5.12.0.SNAPSHOT: missing requirement [activemq/5.12.0.SNAPSHOT] 
> osgi.identity; osgi.identity=activemq-karaf; type=osgi.bundle; 
> version="[5.12.0.SNAPSHOT,5.12.0.SNAPSHOT]"; resolution:=mandatory [caused 
> by: Unable to resolve activemq-karaf/5.12.0.SNAPSHOT: missing requirement 
> [activemq-karaf/5.12.0.SNAPSHOT] osgi.wiring.package; 
> filter:="(&(osgi.wiring.package=org.apache.felix.service.command)(version>=0.12.0)(!(version>=1.0.0)))"]]]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to