Babak Vahdat created CAMEL-13703: ------------------------------------ Summary: camel-example-cdi-osgi doesn't run in Karaf Key: CAMEL-13703 URL: https://issues.apache.org/jira/browse/CAMEL-13703 Project: Camel Issue Type: Task Components: examples Affects Versions: 3.0.0-M3 Reporter: Babak Vahdat
Following the instructions in \{{README.md}} by this example, using Karaf {{4.2.6}} I end up with: {code} (base) ~/Downloads/apache-karaf-4.2.6/bin>./karaf __ __ ____ / //_/____ __________ _/ __/ / ,< / __ `/ ___/ __ `/ /_ / /| |/ /_/ / / / /_/ / __/ /_/ |_|\__,_/_/ \__,_/_/ Apache Karaf (4.2.6) Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf. karaf@root()> repo-add camel 3.0.0-SNAPSHOT Adding feature url mvn:org.apache.camel.karaf/apache-camel/3.0.0-SNAPSHOT/xml/features karaf@root()> repo-add activemq 5.15.9 Adding feature url mvn:org.apache.activemq/activemq-karaf/5.15.9/xml/features karaf@root()> feature:install activemq-broker-noweb pax-cdi-weld camel-sjms camel-cdi org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-cdi; type=karaf.feature; version="[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]"; filter:="(&(osgi.identity=camel-cdi)(type=karaf.feature)(version>=3.0.0.SNAPSHOT)(version<=3.0.0.SNAPSHOT))" [caused by: Unable to resolve camel-cdi/3.0.0.SNAPSHOT: missing requirement [camel-cdi/3.0.0.SNAPSHOT] osgi.identity; osgi.identity=org.apache.camel.camel-cdi; type=osgi.bundle; version="[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-cdi/3.0.0.SNAPSHOT: missing requirement [org.apache.camel.camel-cdi/3.0.0.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=javax.enterprise.context)(version>=2.0.0)(!(version>=3.0.0)))"]] at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392) at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378) at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332) at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257) at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393) at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve camel-cdi/3.0.0.SNAPSHOT: missing requirement [camel-cdi/3.0.0.SNAPSHOT] osgi.identity; osgi.identity=org.apache.camel.camel-cdi; type=osgi.bundle; version="[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-cdi/3.0.0.SNAPSHOT: missing requirement [org.apache.camel.camel-cdi/3.0.0.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=javax.enterprise.context)(version>=2.0.0)(!(version>=3.0.0)))"] at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ... 12 more Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.apache.camel.camel-cdi/3.0.0.SNAPSHOT: missing requirement [org.apache.camel.camel-cdi/3.0.0.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=javax.enterprise.context)(version>=2.0.0)(!(version>=3.0.0)))" at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ... 13 more Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=camel-cdi; type=karaf.feature; version="[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]"; filter:="(&(osgi.identity=camel-cdi)(type=karaf.feature)(version>=3.0.0.SNAPSHOT)(version<=3.0.0.SNAPSHOT))" [caused by: Unable to resolve camel-cdi/3.0.0.SNAPSHOT: missing requirement [camel-cdi/3.0.0.SNAPSHOT] osgi.identity; osgi.identity=org.apache.camel.camel-cdi; type=osgi.bundle; version="[3.0.0.SNAPSHOT,3.0.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-cdi/3.0.0.SNAPSHOT: missing requirement [org.apache.camel.camel-cdi/3.0.0.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=javax.enterprise.context)(version>=2.0.0)(!(version>=3.0.0)))"]] {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)