problem using FORM based authentication

Hello.

I'm using TOMCAT 5.5.15 and I'd like to try the form based authentication.

I configured my WEB-INF/web.xml like this :

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app PUBLIC"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN""http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<display-name>Fa雛ia</display-name>

<description>Version BETA du projet Faeria</description>

<security-constraint>

<web-resource-collection>

<web-resource-name>Game</web-resource-name>

<url-pattern>/user/*</url-pattern>

</web-resource-collection>

<auth-constraint>

<role-name>admin</role-name>

<role-name>user</role-name>

</auth-constraint>

</security-constraint>

<login-config>

<auth-method>form</auth-method>

<form-login-config>

<form-login-page>/login.htm</form-login-page>

<form-error-page>/error.htm</form-error-page>

</form-login-config>

</login-config>

<security-role>

<role-name>admin</role-name>

</security-role>

<security-role>

<role-name>user</role-name>

</security-role>

</web-app>

The rolesuser andadmin are defined in the tomcat-users.xml, and I created some users with those roles.

I did not forget to specify that I'm using the MemoryRealm in the server.xml.

I did not forget to write the login.htm and error.htm pages, and put them in the base directory like I specified in the web.xml file.

When I try to access any page inside my projet, tomcat sends my browser an error, saying the requested resource is unavailable. I have spent 3hours on this already, and I definetly can't find what's missing. Please, tell if I forgot something! Thanks.

[2182 byte] By [bestama] at [2007-10-2 16:35:37]
# 1
I guess this is irrelevant, but what does the <web-resource-name>Game</web-resource-name> play any role in this? What's that used for?
bestama at 2007-7-13 17:41:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...