This line seems to be the suspect:

<form-error-page>/loginError.html</form-error-page>



Annie Guo wrote:

I am trying to hook up JaasRealm.  When I enter username and password, my
LoginModule authenticates it ok from my debug statements.  But every time,
my page is forwarded to loginError.html instead of index.html that I want.
Below is what I have put in web.xml and server.xml.  Would anyone please
help let me know
what I have done wrong?

Thanks a lot.

in web.xml <security-constraint>
<web-resource-collection>
<web-resource-name>Entire Application</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>tomcat</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/loginJaas.jsp</form-login-page>
<form-error-page>/loginError.html</form-error-page>
</form-login-config>
</login-config>


in server.xml

<Realm className="org.apache.catalina.realm.JAASRealm"
                    appName="Internal"
             userClassNames="com.appriss.tracker.InternalPrincipal"
             userRoleNames="com.appriss.tracker.InternalPrincipal"
                          debug="99"/>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to