When choosing a use case, keep in mind that if you try to deploy a Jersey web service in JBOSS 7.1, this will not work. This error will happen:
Only one JAX-RS Application Class allowed
This is because REST Easy comes bundled with JBOSS as the default JAX-RS implementation. This way, JBOSS will decide that this is the implementation you want to use, and will not load another JAX-RS implementation (like Jersey). To fix this, you need to add the following lines to the web.xml file:
<context-param> <param-name>resteasy.scan</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>resteasy.scan.providers</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>resteasy.scan.resources</param-name> <param-value>false</param-value> </context-param>
Link: https://community.jboss.org/message/744530
Tihomir MeΕ‘ΔiΔ Mar 22 '13 at 11:24 2013-03-22 11:24
source share