When trying to run project on Tomcat I get:
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist web.xml:
<context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param> My applicationContext.xml file is located under src/main/java/applicationContext.xml.
src/main/java is configured as a source folder in the build path of my Eclipse project, so I'm not understanding why Tomcat is not finding applicationContext.xml?
src/main/java/applicationContext.xmlis for sure not on the classpath. Please check what the classpath is and what is on it.src/main/resourceelse they will be ignored.