Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 95745 invoked from network); 29 Sep 2006 07:54:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Sep 2006 07:54:10 -0000 Received: (qmail 47972 invoked by uid 500); 29 Sep 2006 07:54:09 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 47938 invoked by uid 500); 29 Sep 2006 07:54:09 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 47929 invoked by uid 99); 29 Sep 2006 07:54:08 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Sep 2006 00:54:08 -0700 X-ASF-Spam-Status: No, hits=0.8 required=5.0 tests=INFO_TLD Received: from [63.65.132.112] ([63.65.132.112:40723] helo=amereast-smg2.iona.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 05/62-10102-E11DC154 for ; Fri, 29 Sep 2006 00:54:08 -0700 Received: from amereast-ems2.IONAGLOBAL.COM ([10.65.6.84]) by amereast-smg2.iona.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k8T7lGtK023211 for ; Fri, 29 Sep 2006 03:47:45 -0400 (EDT) Received: from [10.129.9.105] ([10.129.9.105]) by amereast-ems2.IONAGLOBAL.COM with Microsoft SMTPSVC(5.0.2195.6713); Fri, 29 Sep 2006 03:53:30 -0400 Message-ID: <451CD08E.8050305@iona.com> Date: Fri, 29 Sep 2006 15:51:42 +0800 From: Jiang Ning User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: cxf-dev@incubator.apache.org Subject: About the user defined configuration file Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Sep 2006 07:53:30.0767 (UTC) FILETIME=[5AFE81F0:01C6E39C] X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Andrea, In current cxf user defined configuration file name was passed by System Properity -Dcxf.config.file=user_defined_configuration This user defined configuration file name will be treat as ClassPathResource. public ConfigurerImpl(String cfgFile) { if (null == cfgFile) { cfgFile = System.getProperty(USER_CFG_FILE_PROPERTY_NAME); } if (null == cfgFile) { cfgFile = DEFAULT_USER_CFG_FILE; } ClassPathResource cpr = new ClassPathResource(cfgFile); if (cpr.exists()) { try { ApplicationContext ac = new JaxbClassPathXmlApplicationContext(cfgFile); setApplicationContext(ac); } catch (BeansException ex) { LogUtils.log(LOG, Level.WARNING, "APP_CONTEXT_CREATION_FAILED_MSG", ex, (Object[])null); } } else { LOG.log(Level.INFO, new Message("USER_CFG_FILE_NOT_FOUND_MSG", LOG, cfgFile).toString()); } } There is an issue about the user defined configuration. If the user_defined_configuration file name is same as cxf.xml in the classpath or the user_defined_configuration file not in the classpath. The user_defined_configuration file would not be loaded rightly. My suggestion is configurer treats the user_defined_configuration file as URL like Celtix had done before, to make sure the configuration file right there. Any other thought? Willem.