I have my jboss-web.xml like below.
<jboss-web>
<security-domain>java:/jaas/test</security-domain>
<valve>
<class-name>com.test.WebFormAuthenticator</class-name>
<param>
<param-name>landingPage</param-name>
<param-value>/index.html</param-value>
</param>
</valve>
<context-root>mycontext</context-root>
</jboss-web>
My web.xml have the below lines.
<login-config>
<auth-method>FORM</auth-method>
<realm-name>test</realm-name>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/loginError.html</form-error-page>
</form-login-config>
</login-config>
<security-constraint>
<web-resource-collection>
<web-resource-name>My Application</web-resource-name>
<url-pattern>/rest/*</url-pattern>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>My Application</web-resource-name>
<url-pattern>/bower_components/*</url-pattern>
<url-pattern>/scripts/*</url-pattern>
</web-resource-collection>
</security-constraint>
When the login is successful instead of the index.html the url is changed to /src/assets/images/favicon.ico
the html code am using is like
<form id="loginForm" method="POST" action="j_security_check">
Any idea why this is happening ?