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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.9.Final
    • 3.0.8.Final
    • CDI Integration
    • None

    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.

      Attachments

        Activity

          People

            rsigal@redhat.com Ronald Sigal
            mkouba@redhat.com Martin Kouba
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: