This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch camel-karaf-4.18.x
in repository https://gitbox.apache.org/repos/asf/camel-karaf.git
The following commit(s) were added to refs/heads/camel-karaf-4.18.x by this
push:
new b83823e20 fix(#709): add missing org.springframework.http OSGi import
in camel-cxf-all (#721)
b83823e20 is described below
commit b83823e209977fd26a6fec9d7d312578f2b2d948
Author: JB Onofré <[email protected]>
AuthorDate: Tue Sep 1 21:22:08 2026 +0200
fix(#709): add missing org.springframework.http OSGi import in
camel-cxf-all (#721)
CXF's org.apache.cxf.jaxrs.springmvc.SpringWebUtils references
org.springframework.http.server.observation.ServerRequestObservationContext,
but camel-cxf-all only imported org.springframework.web* (and other specific
Spring sub-packages), not org.springframework.http*. This caused a runtime
NoClassDefFoundError / ClassNotFoundException for that class.
Add org.springframework.http* as an optional, versioned import, consistent
with the other optional Spring imports in this bundle.
Backport of #720 to camel-karaf-4.18.x.
---
components/camel-cxf/camel-cxf-all/pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/components/camel-cxf/camel-cxf-all/pom.xml
b/components/camel-cxf/camel-cxf-all/pom.xml
index 4dea2fb31..591fe7fe2 100644
--- a/components/camel-cxf/camel-cxf-all/pom.xml
+++ b/components/camel-cxf/camel-cxf-all/pom.xml
@@ -59,6 +59,7 @@
org.springframework.beans*;resolution:=optional;version="${camel-osgi-spring-version}",
org.springframework.context*;resolution:=optional;version="${camel-osgi-spring-version}",
org.springframework.core*;resolution:=optional;version="${camel-osgi-spring-version}",
+
org.springframework.http*;resolution:=optional;version="${camel-osgi-spring-version}",
org.springframework.util*;resolution:=optional;version="${camel-osgi-spring-version}",
org.springframework.web*;resolution:=optional;version="${camel-osgi-spring-version}",
org.objectweb.asm*;resolution:=optional;version="${camel-osgi-asm-version}",