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

RESTeasy does not allow multiple Applications in the same webapp

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.3.0.GA
    • Fix Version/s: 3.0-RC-1
    • Component/s: None
    • Labels:
      None

      Description

      According to the JAX-RS spec it should be possible to deploy a war with multiple application classes. While attempting to resolve AS7-3199 I noticed that RESTeasy stashes some stuff in the servlet context, which then gets mixed up between the different servlets:

      https://github.com/resteasy/Resteasy/blob/master/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/server/servlet/ServletContainerDispatcher.java#L69

      To see the code I am using to run this: https://github.com/stuartwdouglas/jboss-as/compare/AS7-3199 . MultipleApplicationTestCase fails randomly, depending on the order that that application is initialised.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bill.burke Bill Burke
                  Reporter:
                  swd847 Stuart Douglas
                • Votes:
                  8 Vote for this issue
                  Watchers:
                  13 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: