[jboss-user] [Clustering/JBoss] - login problems on cluster
luca.xlb
do-not-reply at jboss.com
Thu Mar 1 06:38:01 EST 2007
Hi all!
We have created an application that works fine on a single jboss.
Now, we need to go on a cluster.
I've configured a load balancer and 2 jboss, with mod_jk.
Session replication seems to work fine.
The only problem is in the login phase.
When only one of the two jboss is up all works.
if both are up, login fail, due to this error:
Invalid direct reference to form login page
The error is the same of the direct access to the LoginPage.
Tha application use a custom JAAS login module, and FORM authentication.
SingleSignOn is enabled.
With basic auth all works fine (except logout) ...but i need a form auth
Any advice?
The web.xml is
<security-constraint>
<web-resource-collection>
<web-resource-name>Secure Content</web-resource-name>
<url-pattern>/private/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>ADMIN</role-name>
<role-name>USER</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login/LoginPage.jsp</form-login-page>
<form-error-page>/login/LoginPage.jsp</form-error-page>
</form-login-config>
</login-config>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024196#4024196
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024196
More information about the jboss-user
mailing list