Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1400

Built-in JAX-RS providers registered twice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.1.Final
    • 7.0.0.Final
    • Web Services
    • None
    • Release Notes

      RESTEasy considers every JAX-RS provider listed in a service loader-like to be a built-in provider. RESTEasy take care of loading of these providers early in the startup. Once loaded, these providers are registered with "built-in" flag, which is important to guarantee that any custom provider is given priority over a built-in one at runtime. The registration is handled by the RegisterBuiltin class https://resteasy.svn.sourceforge.net/svnroot/resteasy/trunk/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/providers/RegisterBuiltin.java

      However, it seems that AS7 scans resteasy jars for providers and registers the built-in providers again - as application-provided providers. As a result, every built-in provider is registered twice. Once as built-in and once as application-provided provider. This has several consequences. Once of them is that the priority of application-provided providers is not guaranteed any longer.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: