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

Tomaz Cerar (JIRA) issues at jboss.org
Thu Feb 20 05:37:48 EST 2014


     [ https://issues.jboss.org/browse/WFLY-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Cerar closed WFLY-2975.
-----------------------------

    Resolution: Rejected

    
> 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
>              Labels: jax-rs, jersey, rest, resteasy
>
> 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 :
> {code:xml}
> <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>
> {code}
> The only solution I have found (except standalone.xml) is to add in my web.xml:
> {code: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>
> {code}
> 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