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 0E1A1200CE0 for ; Fri, 25 Aug 2017 11:20:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0C96B16C5F1; Fri, 25 Aug 2017 09:20:06 +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 50C6216C5EE for ; Fri, 25 Aug 2017 11:20:05 +0200 (CEST) Received: (qmail 36604 invoked by uid 500); 25 Aug 2017 09:20:04 -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 36547 invoked by uid 99); 25 Aug 2017 09:20:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2017 09:20:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E46F1C3E3F for ; Fri, 25 Aug 2017 09:20:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id qMEpvMKqAHWH for ; Fri, 25 Aug 2017 09:20:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4EB015FD02 for ; Fri, 25 Aug 2017 09:20:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 12479E0E22 for ; Fri, 25 Aug 2017 09:20:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4884425387 for ; Fri, 25 Aug 2017 09:20:00 +0000 (UTC) Date: Fri, 25 Aug 2017 09:20:00 +0000 (UTC) From: "Matthew Buckett (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-7483) JAXRSServerFactoryBeanDefinitionParser doesn't log autowire failures MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 25 Aug 2017 09:20:06 -0000 [ https://issues.apache.org/jira/browse/CXF-7483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16141409#comment-16141409 ] Matthew Buckett commented on CXF-7483: -------------------------------------- Thanks for the helpful reply, I think you're right on the money about not changing for the 3.2 release. I've created CXF-7486 to track the issue. > JAXRSServerFactoryBeanDefinitionParser doesn't log autowire failures > -------------------------------------------------------------------- > > Key: CXF-7483 > URL: https://issues.apache.org/jira/browse/CXF-7483 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.1.7 > Reporter: Matthew Buckett > Assignee: Sergey Beryozkin > Fix For: 3.0.15, 3.1.13, 3.2.0 > > > I was using the scanning through spring XML config: > {code:xml} > xmlns:jaxrs="http://cxf.apache.org/jaxrs"> > > > > > > {code} > and my autowiring was failing and I was ending up with a un-autowired bean instead. Debugging this was tricky and it was because {{org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefinitionParser#createBeansFromDiscoveredClasses}} doesn't log anything when autowiring fails, it would be helpful if it either threw the exception showing where the problem was or logged it and said it was creating an non-autowired bean. -- This message was sent by Atlassian JIRA (v6.4.14#64029)