title: Spring config location file not found exception
body: <p>In my web app i'm trying to use spring security. I have the following project structure:</p>
  
  <p><a href="https://i.stack.imgur.com/pdehF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pdehF.png" alt="Project structure"></a>
  </p>
  
  <p>In my web.xml i set the configLocations like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Mn8qE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mn8qE.png" alt="Project structure"></a>
  </p>
  
  <p>And in my HibernateUtil, i create the ClassPathXmlApplicationContext like this:</p>
  
  <p><a href="https://i.stack.imgur.com/3mnvI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3mnvI.png" alt="Project structure"></a>
  </p>
  
  <p>But, when i execute the app, i get the following errors:</p>
  
  <pre><code>GRAVE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
  org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML    document from class path resource [resources/applicationContext.xml]; nested exception is    java.io.FileNotFoundException: class path resource [resources/applicationContext.xml] cannot     be opened because it does not exist
  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
  at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
  at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
  at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
  at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
  at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
  at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
  at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:527)
  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:441)
  at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
  at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
  at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
  at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
  at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:680)
  Caused by: java.io.FileNotFoundException: class path resource [resources/applicationContext.xml] cannot be opened because it does not exist
  at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:157)
  at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
  ... 20 more
  </code></pre>
  
  <p>What might be wrong?</p>