This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am trying to implement form based authentication using JAAS in mysql and tomcat.
I followed the tutorial here
I have added roles in tomcat-users.xml and also security configuration in web.xml of the project.
the application runs but even if I enter correct user credentials, I am redirected to error page only.
Please help me regarding this, tomcat log doesn't show any error also.
this is the database realm configuration for mysql in server.xml in tomcat
the web.xml security configuration is
I have added the manager role in tomcat-users.xml is as follows