spring

How to load Spring Application context for jUnit from WEB-INF?

I'm using jUnit for writing unit tests for my applications.

It's easy to load applicationContext.xml when it's in classpath:

[geshifilter-java] @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = {"classpath*:applicationContext.xml"}) public abstract class DefaultApplicationContext { // Code [/geshifilter-java]

But how to load application context not from classpath, but from custom directory, for example WEB-INF?

Solution is to use Maven's path:

Spring login form

I want to create a simple Spring application with login form. So, I'm looking for web sites which could help me. Here are they:
http://teja.tejakantamneni.com/2008/08/spring-security-using-custom.html - custom Spring authentication.
http://blog.richardadamdean.com/?p=213 - another example of custom Spring authentication.