You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "tim08 (via GitHub)" <gi...@apache.org> on 2025/07/22 13:18:27 UTC
[I] cxf route not running using blueprint [camel-karaf]
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: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] cxf route not running using blueprint [camel-karaf]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
jbonofre commented on issue #638:
URL: https://github.com/apache/camel-karaf/issues/638#issuecomment-3133037884
It seems that javax.xml package is not complete here. I'm a bit surprised because we have tests on cxf.
Let me try to reproduce.
--
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
Re: [I] cxf route not running using blueprint [camel-karaf]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
jbonofre closed issue #638: cxf route not running using blueprint
URL: https://github.com/apache/camel-karaf/issues/638
--
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
Re: [I] cxf route not running using blueprint [camel-karaf]
Posted by "tim08 (via GitHub)" <gi...@apache.org>.
tim08 commented on issue #638:
URL: https://github.com/apache/camel-karaf/issues/638#issuecomment-3243919605
@jbonofre the problems are specifically with SOAP, I also have rest-services(cxfrs) and there was no problem after updating to camel 4, I found and ran your test https://github.com/apache/camel-karaf/blob/camel-karaf-4.10.5/tests/features/camel-cxf/src/test/java/org/apache/karaf/camel/itest/CamelCxfITest.java and it just uses rest-service
I don't know how correct this is, but my current fix is to add the following corrections:
in pom.xml camel-cxf-blueprint:
```
<camel.osgi.import>
jakarta.xml.bind*;version="[4,5)",
jakarta.ws.rs*;version="[3.1,4)",
jakarta.servlet*;version="[5,7)",
org.apache.aries.blueprint*,
org.w3c*,
org.osgi.util*,
org.osgi.service*,
org.osgi.framework*,
org.apache.aries.blueprint*,
org.apache.cxf.*;version="[4.1,4.2)",
org.slf4j,
*
</camel.osgi.import>
```
after assembly, missing packages appear in MANIFEST.MF
--
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