Hi,

On 19/12/13 12:02, mayankeagle wrote:
I'm deploying a JAX-RS REST web-services project in JBoss 6.0.1 EAP. As JBoss
6 EAP comes with its own CXF installation (default version is 2.6.8), I have
removed all the CXF JARs from my WEB-INF/lib
This would have been the suggested approach if you were developing a jaxws application. However, the jaxrs components of Apache CXF are not included in JBoss EAP (the reason being that RestEasy is the supported jaxrs impl there), so you can't get them from the container.

If you want to use the Apache CXF impl of jaxrs, my suggestion is to disabled the EAP webservices subsystem for your deployment (using <|||exclude-subsystems|||> in a jboss-deployment-structure.xml, as mentioned at [1]). Then include the cxf jars you need in your deployment. You'll basically end up using JBoss AS as if it was a servlet container only (~ Tomcat). There might be alternative approaches, you might want to check with the EAP customer support though.

  [...] However, with JBoss 6.0.1 EAP, I'm trying to make it work with the
default CXF version, which is 2.6.8. Note that the App-server version in
JBoss 6.0.1 EAP is also AS 7.1.2 so it should work similar to how 7.1.1
works.
The internal version (7.1.2) is actually not that relevant here, do not make too many assumption based on that, EAP comes with multiple fixes.

Cheers
Alessio


[1] http://cxf.apache.org/docs/application-server-specific-configuration-guide.html#ApplicationServerSpecificConfigurationGuide-JBossApplicationServer

--
Alessio Soldano
Web Service Lead, JBoss

Reply via email to