Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 47938200B68 for ; Fri, 5 Aug 2016 02:14:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 46186160AAE; Fri, 5 Aug 2016 00:14:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8F175160AAB for ; Fri, 5 Aug 2016 02:14:21 +0200 (CEST) Received: (qmail 38332 invoked by uid 500); 5 Aug 2016 00:14:20 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 38319 invoked by uid 99); 5 Aug 2016 00:14:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2016 00:14:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8F8D22C029E for ; Fri, 5 Aug 2016 00:14:20 +0000 (UTC) Date: Fri, 5 Aug 2016 00:14:20 +0000 (UTC) From: "Andriy Redko (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-6995) Fix the overlap between ResourceUtils.createApplication and JAXRSCdiResourceExtension beans discovery MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 05 Aug 2016 00:14:22 -0000 [ https://issues.apache.org/jira/browse/CXF-6995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andriy Redko updated CXF-6995: ------------------------------ Description: 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. (was: There is an overlap between ResourceUtils.createApplication and the work JAXRSCdiResourceExtension is doing for beans discovery.) > 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)