Having problem when using web.xml to provide login system to user.
Joined: Jun 01, 2006
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>