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'm trying to build a login system into my webapps. Below is my web.xml and my tomcat-users.xml. I try to login using "myRole" and "myPassword" but it doesn't work. It keeps showing me the pop-up box until it fails to login and gives me HTTP error 401. I'm using Tomcat 4.1.29.
<resource-env-ref> <description>Link to the UserDatabase instance from which we request lists of defined role names.</description> <resource-env-ref-name>UserDatabase</resource-env-ref-name> <resource-env-ref-type>org.apache.catalina.UserDatabase</resource-env-ref-type> </resource-env-ref>