Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-738

More than one JAX-RS Application Class should be allowed

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 3.0-RC-1
    • 2.3.4.Final
    • jaxrs
    • None

      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]

              patriot1burke@gmail.com Bill Burke (Inactive)
              chandrashekar.bn chandrashekar bn (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: