Friday, June 5, 2009

Maven jetty plugin can't find applicationContext.xml?

If you get this error, in your web.xml you need to be explicit about the location of your applicationContext.xml (even if you have a Spring ContextLoaderListener defined).

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>

I would have thought that being a maven-jetty-plugin it would know where to look, but apparently it is too stoopid.

0 comments: