This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch camel-karaf-4.14.x
in repository https://gitbox.apache.org/repos/asf/camel-karaf.git


The following commit(s) were added to refs/heads/camel-karaf-4.14.x by this 
push:
     new 11c4def40 fix(#709): add missing org.springframework.http OSGi import 
in camel-cxf-all (#722)
11c4def40 is described below

commit 11c4def404ce70cb2f1c31de09b0d891267c72dc
Author: JB Onofré <[email protected]>
AuthorDate: Tue Sep 1 21:22:31 2026 +0200

    fix(#709): add missing org.springframework.http OSGi import in 
camel-cxf-all (#722)
    
    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}",

Reply via email to