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

ResteasyProviderFactory not cleaned up on undeploy.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 2.1-beta-1
    • 2.0.1.GA
    • jaxrs
    • None
    • Release Notes

    Description

      When RESTEasy jars are deployed in a shared environment (i.e. deployed in AS classpath), ResteasyProviderFactory is not released on undeployed causing a non-trivial graph of references to be leaked. The static field in RuntimeDelegate should be cleared.

      The problem is that RuntimeDelegate caches the provider factory in a static field. On undeploy, the field should be cleared (if it had not been replaced by another deployment's provider factory in the meantime)

      Reference graph:

      javax.ws.rs.RuntimeDelegate -> ThreadLocalResteasyProviderFactory -> ResteasyProviderFactory

      Attachments

        Issue Links

          Activity

            People

              patriot1burke@gmail.com Bill Burke (Inactive)
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: