commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joao Paulo Santos (JIRA)" <>
Subject [jira] Created: (CONFIGURATION-406) Multi-tenant Configurations Sample is not working
Date Thu, 21 Jan 2010 16:11:55 GMT
Multi-tenant Configurations Sample is not working

                 Key: CONFIGURATION-406
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 1.6
         Environment: Win32;JDK1.6.0_17;SPRING-3.0.0.RELEASE 
            Reporter: Joao Paulo Santos
             Fix For: 1.7

Using a SPRING config like this:


<bean id="configurationFactory" class="org.apache.commons.configuration.DefaultConfigurationBuilder"
<bean id="config" factory-bean="configurationFactory" factory-method="getConfiguration"


and a the configuration.xml is:


   <system />
    <result delimiterParsingDisabled="true" forceReloadCheck="true"
      <provider config-tag="multifile"
    <multifile filePattern="conf/${sys:Id}/test.xml" config-name="clientConfig"/>


invoking to config.getString("any") always return null.

Debuging I found that  at MultiFileHierarchicalConfiguration in getConfiguration() when a
new XMLConfiguration was created as an Inner class. 
The load() method has been overloded to an empty one. That was preventing the configuration
to read the file.


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message