Tomcat Users Authentication
Users can be specficied in the user realm in tomcat-users.xml.
An example is below:
<role rolename=”Admin”/>
<role rolename=”Manager”/>
<role rolename=”Editor”/>
<role rolename=”Viewer”/>
<user username=”Admin_user” password=”password32″ roles=”Admin,Manager”/>
<user username=”Editor_user” password=”password54″ roles=”Editor”/>
<user username=”Guest” password=”password76″ roles=”Viewer”/>
It is imperative that your web.xml security roles match the roles defined in this tomcat-users.xml file, case sensative.