Beim Versuch Projekt auf Tomcat laufen erhalte ich:Spring - Probleme beim Laden applicationContext.xml
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>
Meine applicationContext.xml Datei unter src/main befindet/Java/Anwendungskontext.xml.
src/main/java ist im Build-Pfad meines Eclipse-Projekts als Quellordner konfiguriert, weshalb ich nicht verstehe, warum Tomcat ApplicationContext.xml nicht findet?
Überprüfen Sie, ob die Datei, um sie zu Ihrem WEB-INF/classes auf tomcat kopiert worden ist. –
@RicardoVila sieht nicht so aus, als wäre es kopiert worden – Wes
Beim Ausführen der Anwendung in einem Tomcat ist der Pfad unter 'src/main/java/applicationContext.xml 'sicher nicht auf dem Klassenpfad. Bitte überprüfen Sie, was der Klassenpfad ist und was darauf steht. – hotzst