title: Instantiate XMLConfiguration from spring
body: <p>I'm trying to instantiate <a href="http://commons.apache.org/configuration/apidocs/org/apache/commons/configuration/XMLConfiguration.html" rel="nofollow">XMLConfiguration</a> from spring appcontext, my configuration file is in </p>
  
  <pre><code>src/main/resources/
  </code></pre>
  
  <p>But when I try to pass the constructor args like this :</p>
  
  <pre><code>&lt;constructor-arg type="java.lang.String" value="classpath:/config.xml"/&gt;
  </code></pre>
  
  <p>or </p>
  
  <pre><code>&lt;constructor-arg type="java.lang.String" value="classpath:config.xml"/&gt;
  </code></pre>
  
  <p>The spring cannot locate the file :</p>
  
  <blockquote>
    <p>org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source classpath:/config.xml</p>
  </blockquote>
  
  <p>But I can see it inside the war, in </p>
  
  <pre><code>\WEB-INF\classes
  </code></pre>
  
  <p>Can anyone think what I'm doing wrong ?</p>