[
https://issues.apache.org/jira/browse/AMQ-4411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13616656#comment-13616656
]
MD commented on AMQ-4411:
-------------------------
Just for a heads up, I think this still occurs in karaf 3.0.0.
I tried installing the 5.9-SNAPSHOT in karaf 3 and get the "No matching native
libraries found." error. I checked out activemq to double check and the
wildcard * is present in the nativecode section.
It's probably worth noting that the karaf 3 instance is created by the karaf
tooling plugin so perhaps something something is missing there.
> 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