[
https://issues.apache.org/jira/browse/CAMEL-17137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17474281#comment-17474281
]
Ville Kokkala commented on CAMEL-17137:
---------------------------------------
[~davsclaus] It appears that using the exact steps above again reproduces the
CXF issue, at least in 3.11.4. The CXF feature is resolved from a range
mvn:org.apache.cxf.karaf/apache-cxf/[3,4)/xml/features and due to how the range
is resolved (snapshot pre-release versions of the upper limit are included in
the range), it now points to 4.0.0.SNAPSHOT which doesn't work instead of
3.5.0.SNAPSHOT which works.
Do we really want to use any upstream CXF version within the range instead of
specifying the Camel-compatible version explicitly? If so, the upper range
limit issue remains.
> camel-karaf - Error while adding camel-cxf
> ------------------------------------------
>
> Key: CAMEL-17137
> URL: https://issues.apache.org/jira/browse/CAMEL-17137
> Project: Camel
> Issue Type: Bug
> Components: came-cxf, karaf
> Affects Versions: 3.11.3, 3.12.0
> Reporter: Kiryanov Vlad
> Priority: Minor
> Fix For: 3.13.0, 3.11.4
>
> Attachments: karaf.log
>
>
> Hello!
> In Karaf 4.3.2 while add camel-cxf an error occurs
> 2021-10-27T11:59:22,050 | ERROR | Karaf local console user karaf | ShellUtil
> | 43 - org.apache.karaf.shell.core - 4.3.2 | Exception caught while executing
> command
> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root:
> missing requirement [root] osgi.identity; osgi.identity=camel-cxf;
> type=karaf.feature; version="[3.11.3,3.11.3]";
> filter:="(&(osgi.identity=camel-cxf)(type=karaf.feature)(version>=3.11.3)(version<=3.11.3))"
> [caused by: Unable to resolve camel-cxf/3.11.3: missing requirement
> [camel-cxf/3.11.3] osgi.identity; osgi.identity=cxf-core; type=karaf.feature;
> version="[3.3.0,4.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:264) ~[?:?]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> ~[?:?]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> ~[?:?]
> at java.lang.Thread.run(Thread.java:834) [?:?]
> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to
> resolve camel-cxf/3.11.3: missing requirement [camel-cxf/3.11.3]
> osgi.identity; osgi.identity=cxf-core; type=karaf.feature;
> version="[3.3.0,4.0.0)"
> at
> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341)
> ~[?:?]
> ... 12 more
--
This message was sent by Atlassian Jira
(v8.20.1#820001)