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

Invocation of a CDI bean/JAX-RS resource outside of the JAX-RS pipeline breaks ResteasyProviderFactory

    Details

      Description

      If you invoke a CDI bean which is also a JAX-RS resource outside of the the JAX-RS pipeline (typically when running some integration tests) the ResteasyProviderFactory remains broken for the entire container (most probably its singleton is loaded by an incorrect classloader). As a result, every similar invocation for any other deployment fails with Weld exception.

      This is a regression introduced by the following Resteasy commit:
      https://github.com/resteasy/Resteasy/commit/5de5503bd2909e431e30a1fb3b22a18d166746d4

      A simple reproducer is attached.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ron_sigal Ronald Sigal
                Reporter:
                mkouba Martin Kouba
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: