I ran into the same issue too. Looking further, the problem seems to happen when the 'resources' attribute is used to specify additional configuration resources XML files.

ConfigurationFactoryBean...