title: "Cannot locate configuration source" when using commons-configuration XMLConfiguration with Tomcat
body: <p>I'm building two apps that uses commons-configuration XMLConfiguration. Since the apps are related, I've build another project, called commons, that has a custom configuration manager that initializes the XMLConfiguration like so:</p>
  
  <pre><code>config = new XMLConfiguration("conf/config.xml");
  </code></pre>
  
  <p>What happens is that the "command-line" app works fine, loading the configuration file. But when I try to use my custom configuration manager on a webapp (using Tomcat) I get a </p>
  
  <blockquote>
    <p>org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source</p>
  </blockquote>
  
  <p>I've placed the conf directory on the WEB-INF folder, the root folder and the META-INF folder. I've also tried with <code>"/conf/config.xml"</code>, <code>"./conf/config.xml"</code> and <code>"../conf/config.xml"</code>. </p>
  
  <p>The only time I got this to work - on the web app - was using an absolute path.</p>
  
  <p>What am I missing?</p>
  
  <p>Thanks,
  Bruno</p>