I'm working in a multi-module maven2 project using Spring and GWT. Let's say I have two subprojects: service and presentation. "service" contains the actual implementations of the services and "presentation" is in charge of wrapping them for GWT.
I have successfully loaded the Spring XML files that are in the WEB-INF directory (the same as web.xml), but I'm having problems with those XML files that should be loaded from the other modules.
My web.xml looks like this:
<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.xml
is in the presentation project and spring-services.xml
is in the service project.
The spring-services.xml
file is not being loaded. Am I missing something?