Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

cannot get the login to work

Søren Blidorf

2004-01-16


Hi.

I have installed the jakarta-tomcat-4.1.29 on my XP laptop.

I cannot get the login to work.
I have created a user with correct roles in tomcat-users.

Every thing works on another tomcat machine. Any idears?


<security-constraint>
  <web-resource-collection>
   <web-resource-name>public</web-resource-name>
   <url-pattern>/public/*</url-pattern>
  </web-resource-collection>
  <auth-constraint>
   <role-name>admin</role-name>
   <role-name>view</role-name>
   <role-name>user</role-name>
  </auth-constraint>
  <user-data-constraint>
   <transport-guarantee>NONE</transport-guarantee>
  </user-data-constraint>
</security-constraint>
<security-constraint>
  <web-resource-collection>
   <web-resource-name>master</web-resource-name>
   <url-pattern>/master/*</url-pattern>
  </web-resource-collection>
  <auth-constraint>
   <role-name>admin</role-name>
  </auth-constraint>
  <user-data-constraint>
   <transport-guarantee>NONE</transport-guarantee>
  </user-data-constraint>
</security-constraint>
<login-config>
  <auth-method>FORM</auth-method>
  <form-login-config>
   <form-login-page>/public/login.jsp</form-login-page>
   <form-error-page>/public/loginError.jsp</form-error-page>
  </form-login-config>
</login-config>
<security-role>
  <description>Administrative user</description>
  <role-name>admin</role-name>
</security-role>
<security-role>
  <description>Normal user</description>
  <role-name>user</role-name>
</security-role>
<security-role>
  <description>Read only</description>
  <role-name>view</role-name>
</security-role>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.