form base authentication, after submit, servlet is not available

Hi all,

I m using the "j_security_check" way to deal with my login,

(please notice, I m NOT facing the "j_security_check not found" error)

Everything works just fine before I submit the login page

(Servlet controller works fine, I cannot access the protected page and <action-mappings> are still alive...)

<security-constraint>

<web-resource-collection>

<web-resource-name>Intranet</web-resource-name>

<url-pattern>/intranet/*</url-pattern>

</web-resource-collection>

<auth-constraint>

<role-name>usr</role-name>

</auth-constraint>

</security-constraint>

<login-config>

<auth-method>FORM</auth-method>

<form-login-config>

<form-login-page>/intranet/intranet-index.jsp?mode=login</form-login-page>

<form-error-page>/intranet/intranet-index.jsp?mode=login</form-error-page>

</form-login-config>

</login-config>

But after I submit the correct username and password...

"HTTP Status 404 - Servlet controller is not available" this nightmare is shown...

I found my servlet is dead although I successfully login

(I can see the hidden link made by <logic:present role="usr">)

I use Tomcat 5.0.28, Struts 1.2.2

Please help!!!

George

[1440 byte] By [beerbier] at [2007-9-30 17:39:46]
# 1
are you sure there is a role by name 'usr' added to tomcat-users.xml ? and are you sure that the username and password given by you during login have a roletype 'usr' ?
jSweep at 2007-7-6 14:08:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

aye, the whole login function works fine in Servlet 2.3 and Struts 1.1

The thing is I m trying to shift to 2.4 and 1.2.2 :(

"The servlet controllor is not available" but I m sure it is successfully login,

since after reload the page, I can see the hidden link control by <logic>

, which is specific for "usr" role

George

beerbier at 2007-7-6 14:08:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...