在karaf中安装骆驼领事功能时出错

时间:2019-05-21 07:36:33

标签: java apache-camel apache-karaf

问题

我正在尝试在 karaf 4.2.2 环境中安装骆驼功能 camel-consul 2.22.2

启动时

feature:install camel-consul

从karaf终端出现此错误:

  

org.apache.felix.resolver.reason.ReasonException:无法解析root:缺少需求[root] osgi.identity; osgi.identity =骆驼领事;类型= karaf.feature;版本=“ [2.22.2,2.22.2]”; filter:=“(&(osgi.identity = camel-consul)(type = karaf.feature)(version> = 2.22.2)(version <= 2.22.2))” [[原因:无法解析骆驼领事/2.22.2:缺少要求[camel-consul / 2.22.2] osgi.identity; osgi.identity = org.apache.camel.camel-consul;类型= osgi.bundle;版本=“ [2.22.2,2.22.2]”;分辨率:=强制性[原因:无法解析org.apache.camel.camel-consul / 2.22.2:缺少要求[org.apache.camel.camel-consul / 2.22.2] osgi.wiring.package;过滤器:=“(osgi.wiring.package = com.orbitz.consul.async)” [原因:无法解析org.apache.servicemix.bundles.orbitz-consul-client / 1.2.0.1:缺少要求[org。 apache.servicemix.bundles.orbitz-consul-client / 1.2.0.1] osgi.wiring.package; filter:=“(&(osgi.wiring.package = com.google.common.base)(version> = 22.0.0)(!(version> = 23.0.0))”]]]]]           在org.apache.felix.resolver.Candidates $ MissingRequirementError.toException(Candidates.java:1343)           在org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)           在org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)           在org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)           在org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)           在org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:388)           在org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)           在org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda $ doProvisionInThread $ 13(FeaturesServiceImpl.java:964)           在java.util.concurrent.FutureTask.run(FutureTask.java:266)           在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)           在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)           在java.lang.Thread.run(Thread.java:748)   由以下原因引起:org.apache.felix.resolver.reason.ReasonException:无法解决骆驼领事/2.22.2:缺少要求[camel-consul / 2.22.2] osgi.identity; osgi.identity = org.apache.camel.camel-consul;类型= osgi.bundle;版本=“ [2.22.2,2.22.2]”;分辨率:=强制性[原因:无法解析org.apache.camel.camel-consul / 2.22.2:缺少要求[org.apache.camel.camel-consul / 2.22.2] osgi.wiring.package;过滤器:=“(osgi.wiring.package = com.orbitz.consul.async)” [原因:无法解析org.apache.servicemix.bundles.orbitz-consul-client / 1.2.0.1:缺少要求[org。 apache.servicemix.bundles.orbitz-consul-client / 1.2.0.1] osgi.wiring.package; filter:=“(&(osgi.wiring.package = com.google.common.base)(version> = 22.0.0)(!(version> = 23.0.0))”]]]]           在org.apache.felix.resolver.Candidates $ MissingRequirementError.toException(Candidates.java:1343)           ...另外12个   引起原因:org.apache.felix.resolver.reason.ReasonException:无法解析org.apache.camel.camel-consul / 2.22.2:缺少要求[org.apache.camel.camel-consul / 2.22.2] osgi .wiring.package;过滤器:=“(osgi.wiring.package = com.orbitz.consul.async)” [原因:无法解析org.apache.servicemix.bundles.orbitz-consul-client / 1.2.0.1:缺少要求[org。 apache.servicemix.bundles.orbitz-consul-client / 1.2.0.1] osgi.wiring.package; filter:=“(&(osgi.wiring.package = com.google.common.base)(version> = 22.0.0)(!(version> = 23.0.0)))”]]           在org.apache.felix.resolver.Candidates $ MissingRequirementError.toException(Candidates.java:1343)           ...另外13个   引起原因:org.apache.felix.resolver.reason.ReasonException:无法解析org.apache.servicemix.bundles.orbitz-consul-client / 1.2.0.1:缺少要求[org.apache.servicemix.bundles.orbitz-consul -client / 1.2.0.1] osgi.wiring.package; filter:=“(&(osgi.wiring.package = com.google.common.base)(version> = 22.0.0)(!(version> = 23.0.0)))”           在org.apache.felix.resolver.Candidates $ MissingRequirementError.toException(Candidates.java:1343)           ...另外14个

     

执行命令时出错:无法解析根:缺少要求   [root] osgi.identity; osgi.identity =骆驼领事;类型= karaf.feature;   版本=“ [2.22.2,2.22.2]”;   filter:=“(&(osgi.identity = camel-consul)(type = karaf.feature)(version> = 2.22.2)(version <= 2.22.2))” [[原因:无法解析骆驼领事/2.22.2:缺少要求   [camel-consul / 2.22.2] osgi.identity;   osgi.identity = org.apache.camel.camel-consul;类型= osgi.bundle;   版本=“ [2.22.2,2.22.2]”;分辨率:=强制性[原因:无法   解决org.apache.camel.camel-consul / 2.22.2:缺少要求   [org.apache.camel.camel-consul / 2.22.2] osgi.wiring.package;   filter:=“(osgi.wiring.package = com.orbitz.consul.async)” [原因:   无法解决   org.apache.servicemix.bundles.orbitz-consul-client / 1.2.0.1:丢失   需求   [org.apache.servicemix.bundles.orbitz-consul-client / 1.2.0.1]   osgi.wiring.package;   filter:=“(&(osgi.wiring.package = com.google.common.base)(version> = 22.0.0)(!(version> = 23.0.0))”]]]


问题

为什么会出现此错误?有一些技巧可以解决此问题?

0 个答案:

没有答案