Skip to content

Commit ff42183

Browse files
authored
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.
1 parent 6f2d1e2 commit ff42183

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • components/camel-cxf/camel-cxf-all

‎components/camel-cxf/camel-cxf-all/pom.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
org.springframework.beans*;resolution:=optional;version="${camel-osgi-spring-version}",
6060
org.springframework.context*;resolution:=optional;version="${camel-osgi-spring-version}",
6161
org.springframework.core*;resolution:=optional;version="${camel-osgi-spring-version}",
62+
org.springframework.http*;resolution:=optional;version="${camel-osgi-spring-version}",
6263
org.springframework.util*;resolution:=optional;version="${camel-osgi-spring-version}",
6364
org.springframework.web*;resolution:=optional;version="${camel-osgi-spring-version}",
6465
org.objectweb.asm*;resolution:=optional;version="${camel-osgi-asm-version}",

0 commit comments

Comments
 (0)