Chapter 4. Apache CXF Issues
4.1. Summary of Apache CXF 2.6.0 to 2.7.0 Migration
Overview
JBoss Fuse uses Apache CXF 2.7.0. Since the last release, Apache CXF has been upgraded from version 2.6.0 to version 2.7.0. This introduces a few migration issues.
Upgrading JAX-RS endpoints to JAX-RS 2.0 without recompiling
If you have compiled your application bundles against the JSR-311 (JAX-RS 1.1) API and would like to get them running in CXF 2.7.x without recompiling them against JSR-339 (JAX-RS 2.0) API, use one of the following approaches:
- Import the
javax.ws.rs
,javax.ws.rs.core
andjavax.ws.rs.ext
bundles with the[1.1, 3)
version range and deploy theorg.apache.servicemix.specs.jsr339-api-m10-2.1.0
specification bundle, or - Deploy the
org.apache.servicemix.specs.jsr339-api-m10-2.2.0
specification bundle (when it is released).