Uploaded image for project: '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
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: REST
    • Labels:
      None

      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.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            jaikiran 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 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 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 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
            ozizka Ondrej Zizka added a comment -

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

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

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

            Show
            ozizka 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 Bill Burke added a comment -
            Show
            bill.burke 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:
                swd847 Stuart Douglas
                Reporter:
                pjanouse Pavel Janousek
              • Votes:
                9 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development