You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "paul-mcculloch (via GitHub)" <gi...@apache.org> on 2025/01/10 09:52:47 UTC
[I] osgi - camel-cxf-transport is missing OSGi Import Package causing CNF errors for CxfHeaderHelper [camel-karaf]
paul-mcculloch opened a new issue, #566:
URL: https://github.com/apache/camel-karaf/issues/566
[Originally logged as https://issues.apache.org/jira/browse/CAMEL-20430 but closed with instructions to log here]
o.a.c.c.cxf.transport.message.CxfMessageHelper.getCxfInMessage() references o.a.c.c.cxf.common.header.CxfHeaderHelper but the manifest doesn't import this package.
This triggers "java.lang.ClassNotFoundException: org.apache.camel.component.cxf.common.header.CxfHeaderHelper not found by org.apache.camel.camel-cxf-transport"
This looks to have ben caused by the split of camel-cxf into multiple packages in 3.18.
I think the issue is in the camel-cxf-transport pom .xml which includes:
<camel.osgi.import>
!org.apache.camel.component.cxf.*,
i.e. explicitly excludes the parent package of CxfHeaderHelper
This can be worked around, in Karaf at least, by using the 'wrap' feature to modify the Manifest on the fly. I am using a hacked version of the camel-cxf feature which replaces
<bundle>mvn:org.apache.camel/camel-cxf-transport/3.22.1</bundle>
with
<bundle>wrap:mvn:org.apache.camel/camel-cxf-transport/3.22.1/$DynamicImport-Package=org.apache.camel.component.cxf.common.header&Bundle-SymbolicName=org.apache.camel.camel-cxf-transport-patched&overwrite=merge</bundle>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] osgi - camel-cxf-transport is missing OSGi Import Package causing CNF errors for CxfHeaderHelper [camel-karaf]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
jbonofre closed issue #566: osgi - camel-cxf-transport is missing OSGi Import Package causing CNF errors for CxfHeaderHelper
URL: https://github.com/apache/camel-karaf/issues/566
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org