tim08 opened a new issue, #638:
URL: https://github.com/apache/camel-karaf/issues/638
I'm trying to get a camel route from cxf via blueprint
stack:
- karaf 4.4.7
- java 21
I do the following
`feature:repo-add camel 4.10.5`
`feature:install camel`
`feature:install camel-cxf`
I install the following blueprint(deploy folder):
```
<osgi:blueprint
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:camel="http://camel.apache.org/schema/blueprint"
xmlns:osgi="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:cxf="https://camel.apache.org/schema/blueprint/cxf">
<camel:camelContext id="VerySimple-context">
<camel:route id="VerySimple-route">
<camel:from uri="cxf:bean:VerySimple"/>
<camel:to uri="log:proxy.VerySimple"/>
</camel:route>
</camel:camelContext>
<cxf:cxfEndpoint id="VerySimple" depends-on="VerySimple-context"
address="http://localhost:8088/VerySimple"
xmlns:service="http://www.examples.com/wsdl/HelloService.wsdl"
serviceName="service:Hello_Service" endpointName="service:Hello_Binding"
wsdlURL="test_wsdl.WSDL">
<cxf:properties>
<osgi:entry key="dataFormat" value="PAYLOAD"/>
</cxf:properties>
</cxf:cxfEndpoint>
</osgi:blueprint>
```
I get the following exception:
`2025-07-22T16:10:17,882 | ERROR |
fileinstall-C:\karaf\apache-karaf-4.4.7/deploy | BlueprintContainerImpl
| 110 - org.apache.aries.blueprint.core - 1.10.3 | Unable to start container
for blueprint bundle test-cxf-camel4.xml/0.0.0
java.lang.NoClassDefFoundError: javax/xml/namespace/QName
at
org.apache.camel.component.cxf.blueprint.configuration.AbstractBPBeanDefinitionParser.parseQName(AbstractBPBeanDefinitionParser.java:156)
~[?:?]
at
org.apache.camel.component.cxf.blueprint.helpers.EndpointDefinitionParser.parse(EndpointDefinitionParser.java:56)
~[?:?]
at
org.apache.camel.component.cxf.blueprint.helpers.CxfNamespaceHandler.parse(CxfNamespaceHandler.java:54)
~[?:?]
at
org.apache.aries.blueprint.parser.Parser.parseCustomElement(Parser.java:1369)
~[!/:1.10.3]
at
org.apache.aries.blueprint.parser.Parser.loadComponents(Parser.java:427)
~[!/:1.10.3]
at
org.apache.aries.blueprint.parser.Parser.populate(Parser.java:331) ~[!/:1.10.3]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:371)
[!/:1.10.3]
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298)
[!/:1.10.3]
at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:335)
[!/:1.10.3]
at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:288)
[!/:1.10.3]
at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:284)
[!/:1.10.3]
at
org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:274)
[!/:1.10.3]
at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
[!/:1.10.3]
at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
[!/:1.10.3]
at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
[!/:1.10.3]
at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
[!/:1.10.3]
at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
[!/:1.10.3]
at
org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1384)
[org.apache.felix.framework-7.0.5.jar:?]
at
org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)
[org.apache.felix.framework-7.0.5.jar:?]
at
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)
[org.apache.felix.framework-7.0.5.jar:?]
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4847)
[org.apache.felix.framework-7.0.5.jar:?]
at org.apache.felix.framework.Felix.startBundle(Felix.java:2363)
[org.apache.felix.framework-7.0.5.jar:?]
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
[org.apache.felix.framework-7.0.5.jar:?]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260)
[!/:3.7.4]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233)
[!/:3.7.4]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221)
[!/:3.7.4]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515)
[!/:3.7.4]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
[!/:3.7.4]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)
[!/:3.7.4]
Caused by: java.lang.ClassNotFoundException: javax.xml.namespace.QName not
found by camel-cxf-blueprint [131]
... 29 more`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]