Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13703

camel-example-cdi-osgi doesn't run in Karaf

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.0.0-M3
    • None
    • examples
    • None
    • Unknown

    Description

      Following the instructions in README.md by this example, using Karaf 4.2.6 I end up with:

      (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)))"]]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            bvahdat Babak Vahdat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: