I've been working alone on a project for a long time and now another developer joined so I wanted to set up the project on his machine from SVN. We are both using very similar set-ups:
- OS X Snow Leopard
- Latest Eclipse WTP
- m2eclipse Maven Plugin
- Subversive SVN Plugin
- Tomcat 6.0.24
The Spring version used is 2.5.6.
I set up the project on his machine using Eclipse's "Project from SVN" tool, essentially creating a 1:1 copy of the project. Maven took care of all dependencies without problems as far as I can tell, the project compiled without problems. The project structure is following the Maven standard for webapps with resources (like the applicationContext.xml) in src/main/resources, the project's code in src/main/java and all web-app related files in src/main/webapp and src/main/webapp/WEB-INF respectively.
The web.xml is configured to load the context like so:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
Using the "Servers" tool of Eclipse I tried launching the application right from Eclipse, but it failed immediately with a FileNotFoundException when trying to load the applicationContext.xml.
Since the code checked out from SVN has been left untouched I guess the problem has to do with some parameter for the Maven plugin. Or that I forgot some important step to finalize the set-up. Has anybody encountered a similar issue or has an idea where I should start looking?
Thank you very much for you help!