Thursday, July 23, 2009

Jetty cant find applicationContext.xml

If your web aplication uses Spring, then you probably have an applicationContext.xml. By default, this file is in the /WEB-INF directory. However, for some reason, Jetty looks for it in /WEB-INF/classes. So Jetty gives this "applicationContext.xml file does not exist" error. Putting the file in /WEB-INF/classes seems to resolve this issue.

Note: I had to explode my war to do this. You can use zipitfree (http://www.zipitfast.com/) to explode (uncompress) the war.

No comments:

Post a Comment