You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2020/11/08 17:01:00 UTC

[jira] [Commented] (KARAF-6902) Install karaf 4.2.9/Camel 2.24.1 causing an error (org.apache.felix.resolver.reason.ReasonException: Unable to resolve root)

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

Jean-Baptiste Onofré commented on KARAF-6902:
---------------------------------------------

Did you add the camel features repo in your feature ?

Camel Flatpack is there.

Just tried:
{code:java}
        __ __                  ____      
       / //_/____ __________ _/ __/      
      / ,<  / __ `/ ___/ __ `/ /_        
     / /| |/ /_/ / /  / /_/ / __/        
    /_/ |_|\__,_/_/   \__,_/_/         


  Apache Karaf (4.2.9)


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()> feature:repo-add camel 2.24.1
Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.24.1/xml/features
karaf@root()> feature:install camel-flatpack 
karaf@root()> feature:list -i |grep -i camel
xml-specs-api  x 2.9.0   x          x Started x camel-2.24.1   x
camel-core     x 2.24.1  x          x Started x camel-2.24.1   x
camel-flatpack x 2.24.1  x x        x Started x camel-2.24.1   x   {code}
So, it just works fine directly. Please verify your features XML.

> Install karaf 4.2.9/Camel 2.24.1 causing an error (org.apache.felix.resolver.reason.ReasonException: Unable to resolve root)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-6902
>                 URL: https://issues.apache.org/jira/browse/KARAF-6902
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.9
>            Reporter: Venkata Medagam
>            Priority: Major
>
> Adding feature url mvn:com.ving/ving-core-features/3.18.0/xml/featuresAdding feature url mvn:com.ving/ving-core-features/3.18.0/xml/featuresorg.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=VingHosp; type=karaf.feature; version="[3.18.0,3.18.0]"; filter:="(&(osgi.identity=VingHosp)(type=karaf.feature)(version>=3.18.0)(version<=3.18.0))" [caused by: Unable to resolve VingHosp/3.18.0: missing requirement [VingHosp/3.18.0] osgi.identity; osgi.identity=VingOpr; type=karaf.feature [caused by: Unable to resolve VingOpr/3.18.0: missing requirement [VingOpr/3.18.0] osgi.identity; osgi.identity=camel-flatpack; type=karaf.feature]] 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.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve VingHosp/3.18.0: missing requirement [VingHosp/3.18.0] osgi.identity; osgi.identity=VingOpr; type=karaf.feature [caused by: Unable to resolve VingOpr/3.18.0: missing requirement [VingOpr/3.18.0] osgi.identity; osgi.identity=camel-flatpack; type=karaf.feature] at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ... 12 moreCaused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve VingOpr/3.18.0: missing requirement [VingOpr/3.18.0] osgi.identity; osgi.identity=camel-flatpack; type=karaf.feature at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ... 13 moreError executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=VingHosp; type=karaf.feature; version="[3.18.0,3.18.0]"; filter:="(&(osgi.identity=VingHosp)(type=karaf.feature)(version>=3.18.0)(version<=3.18.0))" [caused by: Unable to resolve VingHosp/3.18.0: missing requirement [VingHosp/3.18.0] osgi.identity; osgi.identity=VingOpr; type=karaf.feature [caused by: Unable to resolve VingOpr/3.18.0: missing requirement [VingOpr/3.18.0] osgi.identity; osgi.identity=camel-flatpack; type=karaf.feature]]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)