You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Okubo, Yasushi (TSD)" <Ya...@takedasd.com> on 2010/06/03 00:54:24 UTC

RE: question for singlesignon for vertical cluster

To experts

Could someone clarify if singlesignon or clustersinglesignon on tomcat
cluster upon failover ever worked before?  
 
Tomcat 6.0.26 [64bit jdk1.6.0_20] on linux box
mod_proxy_ajp in httpd-2.2.3-43.el5.  I may upgrade it to the latest if
singlesignon works upon failover.  Otherwise, I may need to look for
another solution.

I have set up deltamanager as follows.  But I do not see any
notification upon session replication in catalina.out, but only saw log
upon startup.

I made web.xml in /examples distributable and tested session
replication, and it looks worked upon failover, but do not see any log
upon session replication.  /examples/servlets/servlet/SessionExample

I also changed conf/context.xml to make context attributes
distributable:
<Context className="org.apache.catalina.ha.context.ReplicatedContext"/>


So, is anyone able to configure singlesignon or clustersinglesignon
under tomcat cluster and make it work upon failover?

I hope this is only my configuration issue, but it looks like tomcat
cluster always asks a user to re-login upon failover no matter how it is
configured with its own singlesignon feature.

Thanks,



<Manager className="org.apache.catalina.ha.session.DeltaManager"
                   expireSessionsOnShutdown="false"
                   notifyListenersOnReplication="true"/>


Jun 2, 2010 3:16:32 PM org.apache.catalina.ha.session.DeltaManager
getAllClusterSessions
WARNING: Manager [], requesting session state from
org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0, 0,
1}:4030,{127, 0, 0, 1},4030, alive=30163,id={76 67 -77 -124 -107 -117 74
90 -99 125 -34 19 64 98 -106 116 }, payload={}, command={}, domain={},
]. This operation will timeout if no session state has been received
within 60 seconds.
Jun 2, 2010 3:16:32 PM org.apache.catalina.ha.session.DeltaManager
waitForSendAllSessions
INFO: Manager []; session state send at 6/2/10 3:16 PM received in 103
ms.
Jun 2, 2010 3:16:32 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory examples
Jun 2, 2010 3:16:32 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Register manager /examples to cluster element Host with name
localhost
Jun 2, 2010 3:16:32 PM org.apache.catalina.ha.session.DeltaManager start
INFO: Starting clustering manager at /examples
Jun 2, 2010 3:16:32 PM org.apache.catalina.ha.session.DeltaManager
getAllClusterSessions
WARNING: Manager [/examples], requesting session state from
org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0, 0,
1}:4030,{127, 0, 0, 1},4030, alive=30163,id={76 67 -77 -124 -107 -117 74
90 -99 125 -34 19 64 98 -106 116 }, payload={}, command={}, domain={},
]. This operation will timeout if no session state has been received
within 60 seconds.
Jun 2, 2010 3:16:32 PM org.apache.catalina.ha.session.DeltaManager
waitForSendAllSessions






-----Original Message-----
From: Pid [mailto:pid@pidster.com] 
Sent: Wednesday, May 26, 2010 3:20 AM
To: Tomcat Users List
Subject: Re: question for singlesignon for vertical cluster

On 24/05/2010 00:36, Okubo, Yasushi (TSD) wrote:
> Hi
> 
> I would like to enable singlesignon on vertical cluster environment
> [multi-nodes on multiple hosts].
> 
> We are using clustersinglesignon under host element, and this works in
> horizontal cluster, but does not work in vertical cluster environment.

How are you configuring the cluster in each case?

What have you tried?


p

> Is there any way to make this work as part of tomcat configuration?
> When the node goes down, and a user may be routed to the node located
in
> a different host, it will ask a user to relogin again under the
current
> setup.  We would like to avoid a user for relogging to the
application. 
> 
> Anyway, if tomcat does not provide singlesigeon solution for vertical
> cluster, is there any other open source solutions available?
> 
>  
> 
> Thanks,
> 
> yasushi
> 
>  
> 
> OS: linux/redhat 5 - 64 bit
> 
> Jvm : 1.6.x
> 
> Tocmat : 6.0.24/26
> 
>  
> 
> <Host name="localhost"  appBase="webapps"
> 
>             unpackWARs="true" autoDeploy="true"
> 
>             xmlValidation="false" xmlNamespaceAware="false">
> 
>  
> 
>         <Valve
> className="org.apache.catalina.ha.authenticator.ClusterSingleSignOn"
/>
> 
>  
> 
>  
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org