This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karaf.git
The following commit(s) were added to refs/heads/main by this push:
new ff42183f8 fix(#709): add missing org.springframework.http OSGi import
in camel-cxf-all (#720)
ff42183f8 is described below
commit ff42183f8043ea7934e0e811316ef212e7f79792
Author: JB Onofré <[email protected]>
AuthorDate: Tue Sep 1 21:21:48 2026 +0200
fix(#709): add missing org.springframework.http OSGi import in
camel-cxf-all (#720)
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.
---
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 a7a48f76e..a1ab77d1d 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}",