Unable to install feature file with slf4j as dependency.
Issue
- We get the following stack trace when we try to deploy our application's
featurefile.
Error executing command: Could not start bundle mvn:org.apache.camel/camel-cache/2.12.0.redhat-611423 in feature(s) : Uses constraint violation. Unable to resolve bundle revision org.apache.camel.camel-cache [253.0] because it is exposed to package 'org.slf4j' from bundle revisions org.ops4j.pax.logging.pax-logging-api [4.0] and slf4j.api [251.0] via two dependency chains.
Chain 1:
org.apache.camel.camel-cache [253.0]
import: (&(osgi.wiring.package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0)))
|
export: osgi.wiring.package=org.slf4j
org.ops4j.pax.logging.pax-logging-api [4.0]
Chain 2:
org.apache.camel.camel-cache [253.0]
import: (&(osgi.wiring.package=net.sf.ehcache.loader)(version>=2.7.0)(!(version>=3.0.0)))
|
export: osgi.wiring.package=net.sf.ehcache.loader; uses:=org.slf4j
net.sf.ehcache [252.0]
import: (&(osgi.wiring.package=org.slf4j)(version>=1.6.0)(!(version>=2.0.0)))
|
export: osgi.wiring.package=org.slf4j
slf4j.api [251.0]
- The feature file info is:
Description of scb-as-impl 1.0.0-SNAPSHOT feature
----------------------------------------------------------------
Feature has no configuration
Feature has no configuration files
Feature has no dependencies.
Feature contains followed bundles:
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/3.2.8.RELEASE_1
mvn:org.slf4j/slf4j-api/1.7.5
mvn:org.apache.camel/camel-core/2.12.0.redhat-610379
mvn:net.sf.ehcache/ehcache/2.7.4
mvn:org.apache.camel/camel-cache/2.12.0.redhat-610379
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web/3.2.8.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/3.2.8.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/3.2.8.RELEASE_1
mvn:log4j/log4j/1.2.17
mvn:org.apache.httpcomponents/httpcore-osgi/4.4
mvn:org.apache.httpcomponents/httpclient-osgi/4.4
mvn:org.eclipse.jetty.orbit/javax.servlet/3.0.0.v201112011016
mvn:org.apache.camel/camel-jasypt/2.12.0.redhat-610379
mvn:org.apache.camel/camel-http4/2.12.0.redhat-610379
mvn:org.slf4j/slf4j-log4j12/1.7.5
mvn:abc,xyz/lmn/1.0.0-SNAPSHOT
- This happens on jboss fuse 6.1.0 with the following patches applied:
JBossFuse:karaf@root> patch:list
[name] [installed] [description]
jboss-fuse-6.1.0.redhat-379-r2 true JBoss Fuse 6.1 R2
jboss-fuse-6.1.1.redhat-442-r2p6 true JBoss Fuse 6.1 R2P6
Environment
- Red Hat JBoss Fuse
- 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.