From 10006e7bcf6e6d70412bb550260e2495f68bd561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JB=20Onofr=C3=A9?= Date: Wed, 29 Jul 2026 05:58:31 +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.14.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 a1110cc8e..ad139bdf8 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}",