You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by "Siano, Stephan" <st...@sap.com> on 2022/04/12 07:48:37 UTC
Wiring issues with camel-cxf 3.14.2 and CXF 3.4.5 on Karaf 4.3.6
Hi,
I am trying to install camel-cxf 3.14.2 together with CXF 3.4.5 on a custom distribution of Karaf 4.3.6, but the camel-cxf and camel-cxf-transport bundles do not wire.
The problem is that the CXF packages are imported by the camel-cxf bundles with an import range of [3.4,3.4] which does not wire with the bundles CXF 3.4.5 exports (Karaf translates the import range into filter:="(&(osgi.wiring.package=org.apache.cxf)(version>=3.4.0)(version<=3.4.0))", which would only match version 3.4.0, but not 3.4.5).
The issue was introduced with https://issues.apache.org/jira/browse/CAMEL-17137 and I think this was supposed to restrict the import range to any 3.4 version (but for my gut feeling the filter for that would have to be “[3.4,3.5)”). Rastislav Papp has added the same issue to the incident, but I am not sure if that was noted by someone.
Do determine what to do as a follow up I have a few questions:
To the karaf experts:
Is the assumption correct that an import range of [3.4,3.4] should not wire to a package with version 3.4.5?
Is there a setting I didn’t set in my custom distribution that might make this work?
To the camel experts:
Wouldn’t it be better to change the CXF import range to [3.4,3.5) or was that avoided on purpose?
With that change the wiring issues are resolved.
Best regards
Stephan