I am working in a maven2 multi-module project using Spring and GWT. Let's say I have two subprojects: service and presentation. The “service” contains the actual implementations of the services, and the “presentation” is responsible for packaging them for the GWT.
I have successfully downloaded Spring XML files that are in the WEB-INF directory (same as web.xml), but I am having problems with these XML files that need to be loaded from other modules.
My web.xml is as follows:
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/spring-presentation.xml, classpath:/spring-services.xml
</param-value>
</context-param>
Here spring-presentation.xmlis in the presentation project, and spring-services.xmlin the service project. The file spring-services.xmldoes not load. Did I miss something?
source
share