title: Eclipse Spring Dynamic web project classpath find xml config
body: <p>I'm new with Spring and Hibernate. I did a project from book Prospring4
  But I did not a simple java application, but Dynamic web project (for future). I wrote all code and created a <code>app-context-annotation.xml</code> with beans. In book I have a code to load it:</p>
  
  <pre><code>GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
  ctx.load("classpath:META-INF/spring/app-context-annotation.xml");
  </code></pre>
  
  <p>In my project I have a standart path - <code>WebContent/META-INF</code> and I add folder with file where. But always I get a error:</p>
  
  <blockquote>
    <p>org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from class path resource [META-INF/spring/app-context-annotation.xml]
    Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/spring/app-context-annotation.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/spring/app-context-annotation.xml] cannot be opened because it does not exist</p>
  </blockquote>
  
  <p>I read many forum answers but I really don't understand WHY it happens!
  I tried to convert my project to Maven project, but got this error again.</p>
  
  <p>PLZ tell me what I'm doing wrong?</p>
  
  <p>EDIT.
  Ok. Now this is my project structure, but result is the same exception.</p>
  
  <p><a href="http://i.stack.imgur.com/v5CtG.jpg" rel="nofollow">enter image description here</a></p>