however tomcat is throwing the error :
IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml];
Which suggests that tomcat expects the applicationContext.xml to be one directory above where it is copied to. It is being copied to the /WEB-INF/classes directory, not just the plain old /WEB-INF
I am using maven.
In your
web.xmlyou can state where yourapplicationContext.xmlis located. If it is in/WEB-INF/classesthen you must state/WEB-INF/classes/applicationContext.xml(and not just/WEB-INF/applicationContext.xml).Try this:
To include more than one context files you can use the
importfunction. To do so, write into yourapplicationContext.xmlone line per file like this: