1 Reply Latest reply on Jul 1, 2004 11:37 AM by Anil Saldanha

    Session replication not working

    erobles Newbie

      I am running Jboss 3.2.3 on Linux. It is accesses via ajp13 from a separate Apache (port 8009). It is running in clustered mode (with "run -c all") on two nodes, and I get this on the logs :

      2004-05-31 13:21:24,757 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/usr/local/jboss/server/all/deploy/cluster-service.xml
      2004-05-31 13:21:25,728 INFO [org.jboss.ha.framework.server.ClusterPartition] Set the JGroups logging to log
      4j with category:org.apache.log4j.Logger@ecf608, priority: DEBUG, JGroupsLevel: 4
      2004-05-31 13:21:25,874 INFO [org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] Initializing
      2004-05-31 13:21:25,907 DEBUG [DefaultPartition:ReplicantManager] registerRPCHandler
      2004-05-31 13:21:25,908 DEBUG [DefaultPartition:ReplicantManager] subscribeToStateTransferEvents
      2004-05-31 13:21:25,908 DEBUG [DefaultPartition:ReplicantManager] registerMembershipListener
      2004-05-31 13:21:26,203 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is nodo2:33856 (additional data: 17 bytes)
      -------------------------------------------------------
      2004-05-31 13:21:28,373 INFO [org.jboss.ha.framework.server.ClusterPartition] Starting channel
      2004-05-31 13:21:28,374 INFO [org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] Number of clus
      ter members: 2
      2004-05-31 13:21:28,375 INFO [org.jboss.ha.framework.interfaces.HAPartition.DefaultPartition] Other members:
      1
      2004-05-31 13:21:28,467 INFO [org.jboss.ha.framework.server.ClusterPartition] Started ClusterPartition: Defa
      ultPartition
      2004-05-31 13:21:28,467 INFO [org.jboss.ha.framework.server.ClusterPartition] Started jboss:service=DefaultP
      artition
      2004-05-31 13:21:28,628 INFO [org.jboss.ejb.plugins.EntityInstancePool] Started jboss.j2ee:jndiName=clusteri
      ng/HTTPSession,plugin=pool,service=EJB
      2004-05-31 13:21:28,639 INFO [org.jboss.ejb.EntityContainer] Started jboss.j2ee:jndiName=clustering/HTTPSess
      ion,service=EJB
      2004-05-31 13:21:28,765 INFO [org.jboss.ha.httpsession.server.ClusteredHTTPSessionService] Started jboss:ser
      vice=ClusteredHttpSession

      The web app is started as :

      2004-05-31 13:21:38,029 INFO [org.jboss.ha.framework.server.FarmMemberService] **** pullNewDeployments ****
      2004-05-31 13:21:38,071 INFO [org.jboss.ha.framework.server.FarmMemberService] farmDeployment(), deploy locally: /usr/local/jboss/server/all/tmp/cluster-examples-service.xml
      2004-05-31 13:21:40,009 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/usr/local/jboss/server/all/farm/cluster-examples-service.xml
      2004-05-31 13:21:40,028 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/usr/local/jboss/server/all/farm/cluster-examples-service.xml
      2004-05-31 13:21:40,030 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/usr/local/jboss/server/all/farm/mi-perfil.war
      2004-05-31 13:21:49,641 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] deploy, ctxPath=, warUrl=file:/usr/local/jboss/server/all/tmp/deploy/tmp55720mi-perfil.war/
      2004-05-31 13:21:52,968 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] ClusteredHTTPSessionService found
      2004-05-31 13:21:52,991 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] Enabled clustering support for ctxPath=
      2004-05-31 13:22:01,562 INFO [org.jboss.web.localhost.Engine] SingleSignOnContextConfig[]: Added certificates -> request attribute Valve
      2004-05-31 13:22:01,656 WARN [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@f9d4f7
      2004-05-31 13:22:01,679 INFO [org.jboss.web.localhost.Engine] StandardWrapper[:default]: Loading container servlet default
      2004-05-31 13:22:01,680 INFO [org.jboss.web.localhost.Engine] StandardWrapper[:invoker]: Loading container servlet invoker
      2004-05-31 13:22:02,382 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/usr/local/jboss/server/all/farm/mi-perfil.war
      2004-05-31 13:22:02,406 INFO [org.jboss.ha.framework.server.FarmMemberService] Started jboss:service=FarmMem
      ber,partition=DefaultPartition
      2004-05-31 13:22:02,464 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/usr/local/jboss/server/all/deploy/deploy.last/
      2004-05-31 13:22:02,494 INFO [org.jboss.deployment.scanner.URLDeploymentScanner] Started jboss.deployment:type=DeploymentScanner,flavor=URL
      2004-05-31 13:22:02,676 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/usr/local/jboss/server/all/conf/jboss-service.xml
      2004-05-31 13:22:02,690 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [3.2.3 (build: CVSTag=J
      Boss_3_2_3 date=200311301445)] Started in 1m:18s:820ms

      My web app resides on mi-perfil.war, uses context "/". It has the "" tag on web.xml, according to "HTTP Clustering" documentation (Chap. 6). However, I see that session replication is not working. I set up a session on one page ("login.jsp") and I get session information on other pages. If "login.jsp" is executed on node 1, and other pages are executed on node2, the session info does not exist and the user is directed to login again.

      is there anything I'm missing?