title: Spring cannot find bean xml configuration file when it does exist
body: <p>I am trying to make my first bean in Spring but got a problem with loading a context.
  I have a configuration XML file of the bean in src/main/resources.</p>
  
  <p>I receive the following IOException:</p>
  
  <blockquote>
    <p>Exception in thread "main"  org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [src/main/resources/beans.xml]; nested exception is </p>
    
    <p>java.io.FileNotFoundException: class path resource [src/main/resources/beans.xml] cannot 
        be opened because it does not exist</p>
  </blockquote>
  
  <p>but I don't get it, since I do the following code test:</p>
  
  <pre><code>File f = new File("src/main/resources/beans.xml");
  System.out.println("Exist test: " + f.exists());
  </code></pre>
  
  <p>which gives me true! <code>resources</code> is in the classpath. What's wrong?</p>