Problem: httpsession replication is not functioning
peter9080 Apr 26, 2004 6:39 AMProblem: httpsession replication is not functioning
I run Jboss3.2.3/tomcat on 2 computers with clustering support. (run -c all), I want to test the HttpSession Replication function from tomcat.
but it seems failed.
any advice would highly appreciate.
----------
how I tested:
i wrote a servlet, which implements java.io.serializable.
.....
HttpSession session=request.getSession();
session.setAttribute("username", "peterjack-"+(new java.util.Date()));
session.setAttribute("password", "passoooo");
.......
and jsp for viewing the session value.
only the jsp on the same server can see the session value, the other node's jsp cannot.
here is my jboss server.log file
----------
2004-04-26 19:06:53,493 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/D:/jboss-3.2.3/server/all/farm/testWeb222.war
2004-04-26 19:06:53,634 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] deploy, ctxPath=/testWeb222, warUrl=file:/D:/jboss-3.2.3/server/all/tmp/deploy/tmp28155testWeb222.war/
2004-04-26 19:06:53,649 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] ClusteredHTTPSessionService found
2004-04-26 19:06:53,649 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] Enabled clustering support for ctxPath=/testWeb222
2004-04-26 19:06:53,774 INFO [org.jboss.web.localhost.Engine] SingleSignOnContextConfig[/testWeb222]: Added certificates -> request attribute Valve
2004-04-26 19:06:53,806 WARN [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@d91987
2004-04-26 19:06:53,806 INFO [org.jboss.web.localhost.Engine] StandardWrapper[/testWeb222:default]: Loading container servlet default
2004-04-26 19:06:53,806 INFO [org.jboss.web.localhost.Engine] StandardWrapper[/testWeb222:invoker]: Loading container servlet invoker
2004-04-26 19:06:53,993 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/D:/jboss-3.2.3/server/all/farm/testWeb222.war
2004-04-26 19:06:53,993 INFO [org.jboss.ha.framework.server.FarmMemberService] Started jboss:service=FarmMember,partition=DefaultPartition
2004-04-26 19:06:53,993 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/D:/jboss-3.2.3/server/all/deploy/deploy.last/
2004-04-26 19:06:54,009 INFO [org.jboss.deployment.scanner.URLDeploymentScanner] Started jboss.deployment:type=DeploymentScanner,flavor=URL
2004-04-26 19:06:54,040 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/D:/jboss-3.2.3/server/all/conf/jboss-service.xml
2004-04-26 19:06:54,056 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)] Started in 20s:484ms