Besides telling that you want to use the SecuriltyDelegatingFilterProxy, you also have to map it to URLs in the web.xml file Usually to all the URLs like you did with the DispatcherServlet in the servlet-mapping.
description The server encountered an internal error () that prevented it from fulfilling this request.
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.33 logs.
Joined: May 22, 2010
I googled some stuff and changed my web.xml to this
Ok, fine.. Yes, then you don't need to define login page in security context file.. In web.xml, you are mapping /admin1/* to spring security filter, so when you request for /admin, this filter is not applied..