Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EAF2018B02 for ; Fri, 4 Dec 2015 17:06:11 +0000 (UTC) Received: (qmail 7898 invoked by uid 500); 4 Dec 2015 17:06:11 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 7743 invoked by uid 500); 4 Dec 2015 17:06:11 -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 7619 invoked by uid 99); 4 Dec 2015 17:06:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2015 17:06:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ED0A82C1F61 for ; Fri, 4 Dec 2015 17:06:10 +0000 (UTC) Date: Fri, 4 Dec 2015 17:06:10 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6694) SpringResourceFactory does not work with constructor-autowired beans MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15041775#comment-15041775 ] Sergey Beryozkin commented on CXF-6694: --------------------------------------- Great, thanks, it is a good example, I'll probably update a demo with it too. Btw, what is Frontend/Backend, are they JAXRS services ? > SpringResourceFactory does not work with constructor-autowired beans > -------------------------------------------------------------------- > > Key: CXF-6694 > URL: https://issues.apache.org/jira/browse/CXF-6694 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.1.4 > Reporter: Vladimir Kulev > Labels: spring > Attachments: CXF-6694.patch > > > When used with constructor-autowired bean, it fails with "Resource class ... has no valid constructor" exception. We don't need constructor at all when we already have a singleton instance from Spring. > Also it looks like {{isSingleton()}} is called for the first time before correct value is calculated a few lines below: {{isSingleton = ac.isSingleton(beanId)}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)