[
https://issues.apache.org/jira/browse/CXF-6995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andriy Redko resolved CXF-6995.
-------------------------------
Resolution: Fixed
> Fix the overlap between ResourceUtils.createApplication and
> JAXRSCdiResourceExtension beans discovery
> -----------------------------------------------------------------------------------------------------
>
> Key: CXF-6995
> URL: https://issues.apache.org/jira/browse/CXF-6995
> Project: CXF
> Issue Type: Bug
> Reporter: Andriy Redko
> Assignee: Andriy Redko
> Fix For: 3.2.0
>
>
> There is an overlap between ResourceUtils.createApplication and the work
> JAXRSCdiResourceExtension is doing for beans discovery.
> ResourceUtils.createApplication already populates JAXRSServerFactoryBean
> instance service beans, providers and features, but JAXRSCdiResourceExtension
> does the same, from getSingletons(). As the result, there are duplicate
> entries in the lists. The fix removes getSingletons() but keeps getClasses()
> only, as those should be instantiated by CDI.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)