I've configured my webapp to use BASIC authentication.
When attempting to access
http://localhost:8080/DBTest/ I do get a popup asking for user/pwd.
On submitting the user/pwd as role1/password, it is not accepted and the popup keeps reappearing.
Below are the web.xml and tomcat-users.xml
web.xml
-----------------
tomcat-users.xml
------------------------------