I am trying to introduce authentication for some restricted resource in my we application.
I have introduced <security-constraint>.... </security-constraint> for secured resource and also I configured loginForm and loginError page.
So whenever I make a request to that secured resource, it asks for login id and password.
Now my issue is, the credentials I passed in the login form is not validated. Its always saying try again even if I provide the name/password that is present in tomcat-users.xml.
In server.xml , I added this line
In tomcat-users.xml, I modified,
Could you make out, what am I missing so that even if I enter aaaa/bbbbbbbb, why its not considerd as authenticated user?
-Thanks in advance