Hi,
I have to use Jersey for the JAX-RS Implementation with theJBoss AS7 7.1.1 Final version.
When my webapp starts, the following error occurs:
"JBAS011232: Une seule classe Application JAX-RS trouvée"
I could solved the problem if I comment the two lines in standalone.xml :
<extension module="org.jboss.as.jaxrs"/>
<subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
But I am not allowed to change global configuration...
So, I tried to use jboss-deployment-structure.xml in WEB-INF, but no configuration seems to works. The file is well detected by JBoss, I tried many combinations and update to version JBoss AS7 7.1.3 to use the last schema version :
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"> <deployment> <exclude-subsystems> <subsystem name="jax-rs" /> <subsystem name="resteasy" /> <subsystem name="webservices" /> </exclude-subsystems> <exclusions> <module name="org.jboss.as.jaxrs" /> <module name="org.jboss.resteasy" /> <module name="org.jboss.resteasy.resteasy-jaxrs" /> <module name="org.jboss.resteasy.resteasy-cdi" /> <module name="org.jboss.resteasy.resteasy-jaxb-provider" /> <module name="org.jboss.resteasy.resteasy-atom-provider" /> <module name="org.jboss.resteasy.resteasy-jackson-provider" /> <module name="org.jboss.resteasy.resteasy-jsapi" /> <module name="org.jboss.resteasy.resteasy-multipart-provider" /> <module name="org.jboss.resteasy.resteasy-crypto" /> <module name="org.jboss.resteasy.jose-jwt" /> <module name="org.jboss.resteasy.resteasy-jettison-provider" /> <module name="org.jboss.resteasy.resteasy-yaml-provider" /> <module name="org.jboss.resteasy.skeleton-key" /> </exclusions> </deployment> </jboss-deployment-structure>
The only solution I have found (except standalone.xml) is to add in my web.xml:
<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>
I don't think this is the good solution. Why should I have to disable Resteasy scanning ? I don't want the Resteasy module to be included at all. Could you tell me what I'm doing wrong with the file jboss-deployment-structure.xml ?
Thanks,
Julien