'Java Unable to resolve cxf-dosgi-discovery-distributed/1.7.0
I have just moved an OSGi application from Apache Karaf 4.0.1 to 4.3.6 (latest version). When I start the server, I get the following:
Excuse my ignorance, as I don't have much Karaf experience.
Listening for transport dt_socket at address: 5005
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (4.3.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()> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=travellinck-osgi; type=karaf.feature; version="[1.0.5,1.0.5]"; filter:="(&(osgi.identity=travellinck-osgi)(type=karaf.feature)(version>=1.0.5)(version<=1.0.5))" [caused by: Unable to resolve travellinck-osgi/1.0.5: missing requirement [travellinck-osgi/1.0.5] osgi.identity; osgi.identity=cxf-dosgi-discovery-distributed; type=karaf.feature; version="[1.7.0,2.0.0)" [caused by: Unable to resolve cxf-dosgi-discovery-distributed/1.7.0: missing requirement [cxf-dosgi-discovery-distributed/1.7.0] osgi.identity; osgi.identity=cxf-dosgi-ri-discovery-local; type=osgi.bundle; version="[1.7.0,1.7.0]"; resolution:=mandatory [caused by: Unable to resolve cxf-dosgi-ri-discovery-local/1.7.0: missing requirement [cxf-dosgi-ri-discovery-local/1.7.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.remoteserviceadmin)(version>=1.0.0)(!(version>=2.0.0)))" [caused by: Unable to resolve cxf-dosgi-ri-osgi-api/1.7.0: missing requirement [cxf-dosgi-ri-osgi-api/1.7.0] osgi.identity; osgi.identity="root#cxf-dosgi-core-1.7.0"; type=karaf.subsystem; version="[0,0.0.0]"; resolution:=mandatory [caused by: Unable to resolve root#cxf-dosgi-core-1.7.0: missing requirement [root#cxf-dosgi-core-1.7.0] osgi.identity; osgi.identity=cxf-dosgi-core; type=karaf.feature; version="[1.7.0,1.7.0]" [caused by: Unable to resolve cxf-dosgi-core/1.7.0: missing requirement [cxf-dosgi-core/1.7.0] osgi.identity; osgi.identity=cxf-http-jetty; type=karaf.feature [caused by: Unable to resolve cxf-http-jetty/3.1.1: missing requirement [cxf-http-jetty/3.1.1] osgi.identity; osgi.identity=org.apache.cxf.cxf-rt-transports-http-jetty; type=osgi.bundle; version="[3.1.1,3.1.1]"; resolution:=mandatory [caused by: Unable to resolve org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1: missing requirement [org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.blueprint.reflect)(version>=1.0.0)(!(version>=2.0.0)))"]]]]]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:433)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:420)
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:374)
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:399)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1069)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:1004)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve travellinck-osgi/1.0.5: missing requirement [travellinck-osgi/1.0.5] osgi.identity; osgi.identity=cxf-dosgi-discovery-distributed; type=karaf.feature; version="[1.7.0,2.0.0)" [caused by: Unable to resolve cxf-dosgi-discovery-distributed/1.7.0: missing requirement [cxf-dosgi-discovery-distributed/1.7.0] osgi.identity; osgi.identity=cxf-dosgi-ri-discovery-local; type=osgi.bundle; version="[1.7.0,1.7.0]"; resolution:=mandatory [caused by: Unable to resolve cxf-dosgi-ri-discovery-local/1.7.0: missing requirement [cxf-dosgi-ri-discovery-local/1.7.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.remoteserviceadmin)(version>=1.0.0)(!(version>=2.0.0)))" [caused by: Unable to resolve cxf-dosgi-ri-osgi-api/1.7.0: missing requirement [cxf-dosgi-ri-osgi-api/1.7.0] osgi.identity; osgi.identity="root#cxf-dosgi-core-1.7.0"; type=karaf.subsystem; version="[0,0.0.0]"; resolution:=mandatory [caused by: Unable to resolve root#cxf-dosgi-core-1.7.0: missing requirement [root#cxf-dosgi-core-1.7.0] osgi.identity; osgi.identity=cxf-dosgi-core; type=karaf.feature; version="[1.7.0,1.7.0]" [caused by: Unable to resolve cxf-dosgi-core/1.7.0: missing requirement [cxf-dosgi-core/1.7.0] osgi.identity; osgi.identity=cxf-http-jetty; type=karaf.feature [caused by: Unable to resolve cxf-http-jetty/3.1.1: missing requirement [cxf-http-jetty/3.1.1] osgi.identity; osgi.identity=org.apache.cxf.cxf-rt-transports-http-jetty; type=osgi.bundle; version="[3.1.1,3.1.1]"; resolution:=mandatory [caused by: Unable to resolve org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1: missing requirement [org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.blueprint.reflect)(version>=1.0.0)(!(version>=2.0.0)))"]]]]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve cxf-dosgi-discovery-distributed/1.7.0: missing requirement [cxf-dosgi-discovery-distributed/1.7.0] osgi.identity; osgi.identity=cxf-dosgi-ri-discovery-local; type=osgi.bundle; version="[1.7.0,1.7.0]"; resolution:=mandatory [caused by: Unable to resolve cxf-dosgi-ri-discovery-local/1.7.0: missing requirement [cxf-dosgi-ri-discovery-local/1.7.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.remoteserviceadmin)(version>=1.0.0)(!(version>=2.0.0)))" [caused by: Unable to resolve cxf-dosgi-ri-osgi-api/1.7.0: missing requirement [cxf-dosgi-ri-osgi-api/1.7.0] osgi.identity; osgi.identity="root#cxf-dosgi-core-1.7.0"; type=karaf.subsystem; version="[0,0.0.0]"; resolution:=mandatory [caused by: Unable to resolve root#cxf-dosgi-core-1.7.0: missing requirement [root#cxf-dosgi-core-1.7.0] osgi.identity; osgi.identity=cxf-dosgi-core; type=karaf.feature; version="[1.7.0,1.7.0]" [caused by: Unable to resolve cxf-dosgi-core/1.7.0: missing requirement [cxf-dosgi-core/1.7.0] osgi.identity; osgi.identity=cxf-http-jetty; type=karaf.feature [caused by: Unable to resolve cxf-http-jetty/3.1.1: missing requirement [cxf-http-jetty/3.1.1] osgi.identity; osgi.identity=org.apache.cxf.cxf-rt-transports-http-jetty; type=osgi.bundle; version="[3.1.1,3.1.1]"; resolution:=mandatory [caused by: Unable to resolve org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1: missing requirement [org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.blueprint.reflect)(version>=1.0.0)(!(version>=2.0.0)))"]]]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 13 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve cxf-dosgi-ri-discovery-local/1.7.0: missing requirement [cxf-dosgi-ri-discovery-local/1.7.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.remoteserviceadmin)(version>=1.0.0)(!(version>=2.0.0)))" [caused by: Unable to resolve cxf-dosgi-ri-osgi-api/1.7.0: missing requirement [cxf-dosgi-ri-osgi-api/1.7.0] osgi.identity; osgi.identity="root#cxf-dosgi-core-1.7.0"; type=karaf.subsystem; version="[0,0.0.0]"; resolution:=mandatory [caused by: Unable to resolve root#cxf-dosgi-core-1.7.0: missing requirement [root#cxf-dosgi-core-1.7.0] osgi.identity; osgi.identity=cxf-dosgi-core; type=karaf.feature; version="[1.7.0,1.7.0]" [caused by: Unable to resolve cxf-dosgi-core/1.7.0: missing requirement [cxf-dosgi-core/1.7.0] osgi.identity; osgi.identity=cxf-http-jetty; type=karaf.feature [caused by: Unable to resolve cxf-http-jetty/3.1.1: missing requirement [cxf-http-jetty/3.1.1] osgi.identity; osgi.identity=org.apache.cxf.cxf-rt-transports-http-jetty; type=osgi.bundle; version="[3.1.1,3.1.1]"; resolution:=mandatory [caused by: Unable to resolve org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1: missing requirement [org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.blueprint.reflect)(version>=1.0.0)(!(version>=2.0.0)))"]]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 14 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve cxf-dosgi-ri-osgi-api/1.7.0: missing requirement [cxf-dosgi-ri-osgi-api/1.7.0] osgi.identity; osgi.identity="root#cxf-dosgi-core-1.7.0"; type=karaf.subsystem; version="[0,0.0.0]"; resolution:=mandatory [caused by: Unable to resolve root#cxf-dosgi-core-1.7.0: missing requirement [root#cxf-dosgi-core-1.7.0] osgi.identity; osgi.identity=cxf-dosgi-core; type=karaf.feature; version="[1.7.0,1.7.0]" [caused by: Unable to resolve cxf-dosgi-core/1.7.0: missing requirement [cxf-dosgi-core/1.7.0] osgi.identity; osgi.identity=cxf-http-jetty; type=karaf.feature [caused by: Unable to resolve cxf-http-jetty/3.1.1: missing requirement [cxf-http-jetty/3.1.1] osgi.identity; osgi.identity=org.apache.cxf.cxf-rt-transports-http-jetty; type=osgi.bundle; version="[3.1.1,3.1.1]"; resolution:=mandatory [caused by: Unable to resolve org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1: missing requirement [org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.blueprint.reflect)(version>=1.0.0)(!(version>=2.0.0)))"]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 15 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve root#cxf-dosgi-core-1.7.0: missing requirement [root#cxf-dosgi-core-1.7.0] osgi.identity; osgi.identity=cxf-dosgi-core; type=karaf.feature; version="[1.7.0,1.7.0]" [caused by: Unable to resolve cxf-dosgi-core/1.7.0: missing requirement [cxf-dosgi-core/1.7.0] osgi.identity; osgi.identity=cxf-http-jetty; type=karaf.feature [caused by: Unable to resolve cxf-http-jetty/3.1.1: missing requirement [cxf-http-jetty/3.1.1] osgi.identity; osgi.identity=org.apache.cxf.cxf-rt-transports-http-jetty; type=osgi.bundle; version="[3.1.1,3.1.1]"; resolution:=mandatory [caused by: Unable to resolve org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1: missing requirement [org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.blueprint.reflect)(version>=1.0.0)(!(version>=2.0.0)))"]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 16 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve cxf-dosgi-core/1.7.0: missing requirement [cxf-dosgi-core/1.7.0] osgi.identity; osgi.identity=cxf-http-jetty; type=karaf.feature [caused by: Unable to resolve cxf-http-jetty/3.1.1: missing requirement [cxf-http-jetty/3.1.1] osgi.identity; osgi.identity=org.apache.cxf.cxf-rt-transports-http-jetty; type=osgi.bundle; version="[3.1.1,3.1.1]"; resolution:=mandatory [caused by: Unable to resolve org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1: missing requirement [org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.blueprint.reflect)(version>=1.0.0)(!(version>=2.0.0)))"]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 17 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve cxf-http-jetty/3.1.1: missing requirement [cxf-http-jetty/3.1.1] osgi.identity; osgi.identity=org.apache.cxf.cxf-rt-transports-http-jetty; type=osgi.bundle; version="[3.1.1,3.1.1]"; resolution:=mandatory [caused by: Unable to resolve org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1: missing requirement [org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.blueprint.reflect)(version>=1.0.0)(!(version>=2.0.0)))"]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 18 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1: missing requirement [org.apache.cxf.cxf-rt-transports-http-jetty/3.1.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.blueprint.reflect)(version>=1.0.0)(!(version>=2.0.0)))"
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
... 19 more
I have found the following in the feature.xml file:
travellinck-osgi-feature.xml
<feature
name="travellinck-osgi"
version="1.0.5"
description="Tlink OSGi Bundles (all)"
install="auto">
<!-- Declaritive services support -->
<feature version="[4.0.1,5)">scr</feature>
<!-- Declaritive Web Service Produce/Consume Support -->
<feature version="[1.7.0,2)">cxf-dosgi-discovery-distributed</feature>
<!-- Some web services clients (with headers, auth) require this -->
<bundle start="true" start-level="10">
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.0.0
i have searched for answers, but there is not much out there. Any ideal please?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
