More than one JAX-RS class should be allowed to load in a web application (.war).
We have webproject have more then on JAX-RS class. As per the JAX-RS we can have more than 1 application class by specifying
<web-app ...>
...
<context-param>
<param-name>resteasy.scan</param-name>
<param-value>true</param-value>
</context-param>
...
</web-app>
but when we try this we get following exception
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed. org.jboss.samples.rs.webservices.RESTSearch org.jboss.samples.rs.webservices.MyRESTSearch
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scan(JaxrsScanningProcessor.java:209)
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:105)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]