From 47a2ab47740925f4f6abd2a2bf34b55dd12a29c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JB=20Onofr=C3=A9?= Date: Tue, 28 Jul 2026 22:08:27 +0200 Subject: [PATCH] fix(#709): add missing org.springframework.http OSGi import in camel-cxf-all 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}",