java.lang.NoClassDefFoundError: javax/ws/rs/BeanParam when using Camel CXF on Fuse 6.2.1 on EAP 6.4
Issue
- We are running Fuse 6.2.1 on EAP 6.4.
-
We are deploying an application with a Camel route that uses Camel CXF to create a rest endpoint, but we get the error:
java.lang.NoClassDefFoundError: javax/ws/rs/BeanParam
when deploying it. -
It seems this is because EAP 6.4 does not support JAX-RS 2.0. We have looked at https://issues.jboss.org/browse/ENTESB-2748 and this KCS, but it is still not clear to us how we can work around this in a supported way.
-
This works in the Karaf version of Fuse, so we would have expected this to also be supported in Fuse on EAP.
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.