JSP web application form based authentication in tomcat

tomcat

Solution

At last got this working!

As I am using eclipse to deploy my application, eclipse adds a project named Servers which contains server.xml which is in fact used by tomcat when the tomcat is started using eclipse.

So the solution is to make the realm changes to server.xml in Servers project in eclipse.

Thank you guys for all your help and support.

Best regards, Zaheer

Problem

I have configured my application to use form based authentication and set up the needed settings in server.xml. When I try to access a protected page I am correctly redirected to login page. On the login page I provide the correct userid and password but it does not log me in, instead shows the login error page. I am using Eclipse to run the project in Tomcat alongwith MySQL database on Mac OS X. Thanks in advance.

Original source