Hi

I’m upgrading an older camel blueprint project to the latest karaf using camel 
4.6.0 with java 21. I’ve got it all working except for a cxf endpoint. In a 
camel-blueprint.xml I have got a definition for camelcxf:cxfEndpoint and 
installing the bundle gives this error :

java.lang.ClassNotFoundException: 
org.apache.camel.component.cxf.jaxws.CxfEndpoint not found by 
camel-cxf-blueprint

This error occurs when the code calls EndpointDefinitionParse.parse(Element, 
ParseContext) at line 35. The line is :

MutableBeanMetaData endpointConfig = createBeanMetadata(element, context, 
CxfBlueprintEndpoint.class);

I have debugged it and it does not even go into the createBeanMetadata method 
and bombs right there. My assumption is that there is an import in CxfEndpoint 
that is not part of the class path. I don’t know what it is though.  

I’ve installed the camel-cxf as well as camel-cxf features. I can see the jar 
camel-cxf-all.4.6.0.jar in the karaf system folders, and have checked that 
CxfEndpoint is there, and have found all imports in that class. What its 
missing is a mystery… 
In my project, I’ve included bundle imports for 
org.apache.camel.component.cxf.* as well as org.apache.cxf.*.  

I cannot install any of the ‘cxf’ features as they at version 3.6.3, which 
requires an older version of jetty, and trying to install Jetty 9 turned very 
horrible due, with may errors around imports of javax and jakarta. 


I even went as far as checking in camel-karaf the camel-cxf-all module, and 
could not see any export of org.apache.camel.component.cxf.jaxws and added it, 
rebuilding my karat install to pick it up. But that makes no difference. 


I’m no expert on the workings of karaf and osgi bundles, and wonder if I have 
missed something, or is there an issue in camel-karaf where cxf needs to be 
updated to work? Any help would be very appreciated.


-- James Bushell

Reply via email to