You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Freddie Leatham (JIRA)" <ji...@apache.org> on 2013/07/24 17:13:48 UTC

[jira] [Commented] (AMQ-4411) activemq-osgi directive is too strict - needs to be optional

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

Freddie Leatham commented on AMQ-4411:
--------------------------------------

Can anyone suggest a solution so that I can get around this temporarily without building activemq? running in Karaf 2.3.1
                
> activemq-osgi <Bundle-NativeCode> directive is too strict - needs to be optional
> --------------------------------------------------------------------------------
>
>                 Key: AMQ-4411
>                 URL: https://issues.apache.org/jira/browse/AMQ-4411
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.8.0
>            Reporter: Gary Tully
>            Assignee: Gary Tully
>             Fix For: 5.9.0
>
>
> When the bundle is used on a platform where we don't have native libs we fail with:{code}
> 2013-03-27 14:19:47,241 | ERROR | Thread-6         | FeaturesServiceImpl              | s.internal.FeaturesServiceImpl$2 1143 | 20 - org.apache.karaf.features.core - 2.3.0 | Error installing boot features
> java.lang.Exception: Could not start bundle mvn:org.apache.activemq/activemq-osgi/5.9-SNAPSHOT in feature(s) activemq-client-5.9-SNAPSHOT: Unresolved constraint in bundle org.apache.activemq.activemq-osgi [87]: No matching native libraries found.
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:476)[20:org.apache.karaf.features.core:2.3.0]
>         at org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1141)[20:org.apache.karaf.features.core:2.3.0]
> Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.activemq.activemq-osgi [87]: No matching native libraries found.
>         at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)[org.apache.felix.framework-4.0.3.jar:]
>         at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)[org.apache.felix.framework-4.0.3.jar:]
>         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)[org.apache.felix.framework-4.0.3.jar:]
>         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:931)[org.apache.felix.framework-4.0.3.jar:]
>         at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:473)[20:org.apache.karaf.features.core:2.3.0]
>         ... 1 more
> {code}
> Adding a '*' clause to <Bundle-NativeCode> sorts this. levelDB will fallback to the java impl in cases where the jni deps are not found. But also, it allows the bundle to used with the default store where there are no native deps at all.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira