WildFly
  1. WildFly
  2. WFLY-831

RESTEasy: Can't deploy WebApp if more than one subclass of javax.ws.rs.Application is present

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved (View Workflow)
    • Priority: Major Major
    • Resolution: Out of Date Out of Date
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: REST
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      If I packed WAR WebApp with more that one subclass of javax.ws.rs.Application, deployment fails with "JBAS011232: Only one JAX-RS Application Class allowed."

      This is not correct because it is against JAX-RS 1.1. specs where invalid situation (in section 2.3.2) is only when "It is a n error for
      more than one application to be deployed at the same effective servlet mapping".

      If you have any objections, please compare to reference JEE6 and JAX-RS implementation represented by the GlassFish Prelude 3.1.1 application server with already fully JEE6 platform support.

        Issue Links

          Activity

          Hide
          jaikiran pai
          added a comment -

          hu le, please use the RestEasy user mailing list http://sourceforge.net/mail/?group_id=190222 for that question.

          Show
          jaikiran pai
          added a comment - hu le, please use the RestEasy user mailing list http://sourceforge.net/mail/?group_id=190222 for that question.
          Hide
          Bill Burke
          added a comment -

          I have a pull request for trunk that only barfs if there are multiple Application classes annotated with @ApplicationPath and ignore any other non-annotated Application class. Allowing multiple deployed Application classes is going to have to wait though until Resteasy 3.

          I'd backmerge it to AS 7.x, but I don't see a 7.2 branch to fork/merge to.

          Show
          Bill Burke
          added a comment - I have a pull request for trunk that only barfs if there are multiple Application classes annotated with @ApplicationPath and ignore any other non-annotated Application class. Allowing multiple deployed Application classes is going to have to wait though until Resteasy 3. I'd backmerge it to AS 7.x, but I don't see a 7.2 branch to fork/merge to.
          Hide
          Ondrej Zizka
          added a comment -

          Unfortunatelly, next AS is just 8...
          Anyway, thanks! Can you link the PR please?

          Show
          Ondrej Zizka
          added a comment - Unfortunatelly, next AS is just 8... Anyway, thanks! Can you link the PR please?
          Hide
          Ondrej Zizka
          added a comment - - edited

          Also, could you please merge it to EAP 6.1.x? Once you spent time on it...

          Show
          Ondrej Zizka
          added a comment - - edited Also, could you please merge it to EAP 6.1.x? Once you spent time on it...
          Hide
          Bill Burke
          added a comment -
          Show
          Bill Burke
          added a comment - EAP 6.x is a Won't Fix. SHould work in Wildfly. https://github.com/resteasy/Resteasy/tree/master/jaxrs/as8-integration-testing/application-test

            People

            • Assignee:
              Stuart Douglas
              Reporter:
              Pavel Janousek
            • Votes:
              9 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: