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 1353469DE for ; Wed, 1 Jun 2011 10:00:31 +0000 (UTC) Received: (qmail 23641 invoked by uid 500); 1 Jun 2011 10:00:31 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 23623 invoked by uid 500); 1 Jun 2011 10:00:30 -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 23577 invoked by uid 99); 1 Jun 2011 10:00:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 10:00:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 10:00:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A422FED77F for ; Wed, 1 Jun 2011 09:59:47 +0000 (UTC) Date: Wed, 1 Jun 2011 09:59:47 +0000 (UTC) From: "Freeman Fang (JIRA)" To: issues@cxf.apache.org Message-ID: <1387577877.59090.1306922387668.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1809188853.59015.1306920588057.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CXF-3564) SpringBusFactory should read META-INF/cxf/cxf.extension during creating SpringBus MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-3564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Freeman Fang resolved CXF-3564. ------------------------------- Resolution: Not A Problem > SpringBusFactory should read META-INF/cxf/cxf.extension during creating SpringBus > --------------------------------------------------------------------------------- > > Key: CXF-3564 > URL: https://issues.apache.org/jira/browse/CXF-3564 > Project: CXF > Issue Type: Bug > Affects Versions: 2.4 > Reporter: David Liu > Assignee: Freeman Fang > > It could be a bug in SpringBusFactory that it does not read META-INF/cxf/cxf.extension file which contains additional cxf extension config files. However, it uses to read META-INF/cxf/cxf.extension in 2.2. > Reason: In CXF 2.2, SpringBusFactory will always create BusApplicationContext to read META-INF/cxf/cxf.extension when cfgFile is null, However, CXF 2.4 does not create BusApplicationContext when cfgFile is null. I think it is a bug in CXF 2.4 because it will ignore the extions in cxf.extension file > Code: when cfgFiles is null, SpringBusFactory will not create BusApplicationContext to read META-INF/cxf/cxf.extension file. > {code} > public Bus createBus(String cfgFiles[], boolean includeDefaults) { > try { > String userCfgFile = System.getProperty(Configurer.USER_CFG_FILE_PROPERTY_NAME); > String sysCfgFileUrl = System.getProperty(Configurer.USER_CFG_FILE_PROPERTY_URL); > Resource r = BusApplicationContext.findResource(Configurer.DEFAULT_USER_CFG_FILE); > if (context == null && userCfgFile == null && cfgFiles == null && sysCfgFileUrl == null > && (r == null || !r.exists()) && includeDefaults) { > return new org.apache.cxf.bus.CXFBusFactory().createBus(); > } > return finishCreatingBus(createApplicationContext(cfgFiles, includeDefaults)); > return finishCreatingBus(createApplicationContext(cfgFiles, includeDefaults)); > {code} > > Could you please fix it? > Cheers, > David -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira