[jboss-jira] [JBoss JIRA] Commented: (AS7-1400) Built-in JAX-RS providers registered twice

Jozef Hartinger (JIRA) jira-events at lists.jboss.org
Tue Jul 26 08:09:24 EDT 2011


    [ https://issues.jboss.org/browse/AS7-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616474#comment-12616474 ] 

Jozef Hartinger commented on AS7-1400:
--------------------------------------

Testcase https://github.com/jharting/jboss-as/tree/AS7-1400-testcase

> Built-in JAX-RS providers registered twice
> ------------------------------------------
>
>                 Key: AS7-1400
>                 URL: https://issues.jboss.org/browse/AS7-1400
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Web Services
>    Affects Versions: 7.0.0.Final
>            Reporter: Jozef Hartinger
>            Assignee: Stuart Douglas
>             Fix For: 7.0.1.Final
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list