[jboss-jira] [JBoss JIRA] (WFLY-2975) JBAS011232: Unable to exclude resteasy with jboss-deployment-structure.xml

SOBCZAK Julien (JIRA) issues at jboss.org
Thu Feb 20 05:31:48 EST 2014


SOBCZAK Julien created WFLY-2975:
------------------------------------

             Summary: JBAS011232: Unable to exclude resteasy with jboss-deployment-structure.xml
                 Key: WFLY-2975
                 URL: https://issues.jboss.org/browse/WFLY-2975
             Project: WildFly
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: REST
    Affects Versions: JBoss AS7 7.1.1.Final
            Reporter: SOBCZAK Julien
            Assignee: Stuart Douglas


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


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list