I am using acegi security with spring in my application. I have created the required entries in the We.xml and applicationContext.xml. The login page of the application is opening but when I hit the login button, 404 error page opens up. I have also overriden the 404 page through web.xml which is working correctly. Can anyone help me knowing the error in my security setup.