Autentificação JAKARTA

Olá

Estou tentando fazer um autentificação pelo JAKARTA, consegui fazer a validação no banco.
Mas não consigo fazer o seguinte quando o usuário entrar em alguma pagina ele chamar o login para validar

<web-app>
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>teste</web-resource-name>	
			<url-pattern>/*</url-pattern>
			<http-method>GET</http-method>
		    <http-method>POST</http-method>
		</web-resource-collection>	
	</security-constraint>
	
	<login-config>
		<auth-method>FORM</auth-method>
		<form-login-config>
			<form-login-page>/login.jsp</form-login-page>
			<form-error-page>/error.jsp</form-error-page>
		</form-login-config>				
	</login-config>
</web-app>
<html>
<head>
</head>
<body>
<h2>Login Page</h2>
<form method="post" action="j_security_check">
<input type="text" name="j_username">
<input type="password" name="j_password">
<input type="submit" value="Login">
</body>
</html>

Esse é o meu arquivo web.xml

Sabem o que pode estar acontecendo.

Desde ja agradeço.

Olá…

Não sei porque mais para aquele esquema dar certo tem que botar o auth-constraint msm não tendo regra nenhuma…

<web-app> 
   <security-constraint> 
      <web-resource-collection> 
         <web-resource-name>teste</web-resource-name>    
         <url-pattern>/*</url-pattern> 
         <http-method>GET</http-method> 
          <http-method>POST</http-method> 
      </web-resource-collection>    
      <auth-constraint>
          <role-name></role-name>
      </auth-constraint>
</security-constraint> 
  
   <login-config> 
      <auth-method>FORM</auth-method> 
      <form-login-config> 
         <form-login-page>/login.jsp</form-login-page> 
         <form-error-page>/error.jsp</form-error-page> 
      </form-login-config>             
   </login-config> 
</web-app>  

[]'s