Hi,
I have a simple war application with security constraints to some resources. If I define basic authentication Glassfish runs ok (it tells browser to prompt me with default panel for login and password). But if I change to form based autentication, Glassfish returns
http://localhost:8080/ta/WEB-INF/login.jsp
with HTTP status 404
This is my login-config
<login-config>
<auth-method>FORM</auth-method>
<realm-name>my-realm</realm-name>
<form-login-config>
<form-login-page>/WEB-INF/login.jsp</form-login-page>
<form-error-page>/WEB-INF/erroLogin.jsp</form-error-page>
</form-login-config>
</login-config>
Realm configuration at Glassfish is ok.
login.jsp is a file with:
<form action="j_security_check" method="post">
<input name="j_username">
<input type="password" name="j_password">
<input type="submit" value="Login">
</form>
My application runs ok if i use Tomcat.
Thanks for any tip.
Leandro
[Message sent by forum member 'leandro_komosinski' (leandro_at_inf.ufsc.br)]
http://forums.java.net/jive/thread.jspa?messageID=369928