title: IOException parsing XML document from class path resource [beans1.xml]; nested exception is java.io.FileNotFoundException
body: <p>I am getting above exception when i try to run simple spring example</p>
  
  <p>Following line of code try to read spring beans from beans1.xml</p>
  
  <pre><code>ApplicationContext context = new ClassPathXmlApplicationContext("beans1.xml");
  </code></pre>
  
  <p>Following is the complete exception i am getting. </p>
  
  <pre><code>Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [beans1.xml]; nested exception is java.io.FileNotFoundException: class path resource [beans1.xml] cannot be opened because it does not exist
  </code></pre>
  
  <p>I have put xml file in every possible location hoping that program will detect the file. But still this program can not find this bean configuration file. Also i am using maven as the build tool, but i am running the program using Eclipse IDE </p>