cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiang Ning <>
Subject About the user defined configuration file
Date Fri, 29 Sep 2006 07:51:42 GMT
Hi Andrea,
In current cxf user defined configuration file name was passed by System 
This user defined configuration file name will be treat as 

  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 
            } catch (BeansException ex) {
                LogUtils.log(LOG, Level.WARNING, 
        } 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?


View raw message