2015-02-06 19:09 GMT+03:00 Junek Leoš <ju...@oksystem.cz>: > Hello to all, > > Would anyone know why session replication does not work for me? Load balancer > with session afinity works great, but after reconfiguration settings to > session replication my sessions are not persisted. I am running Oracle Linux > 6.5 (almost same as RHEL 6.5) with Tomcat 8.0.18, Java 1.7.0_55. There are > three instances of Tomcat. All relevant config is listed below. > > [...]
> I am following video guide of Rama Krishnnan: > https://www.youtube.com/watch?v=cYBdaeNeXbY > > What could be source or symptom of problems? > > > 1) In catalina.out I could not see messages > INFO: Register manager /examples to cluster element Engine with name > <server_name> > > > org.apache.catalina.ha.session.DeltaManager start > > INFO: Starting clustering manager at /examples > > as blog post > http://blogs.agilefaqs.com/2009/11/09/setting-up-tomcat-cluster-for-session-replication/ > mentions > > Does it mean DeltaManager was not properly loaded? > > > 2) Tomcat docs says "All your session attributes must implement > java.io.Serializable" and I am not sure about it. Below my index.jsp is > listed. It an attribute is not a Serializable, it cannot be transmitted over the wire. For starters, see javadoc of java.io.Serializable. There are also tutorials and good books elsewhere. > All files > $CATALINA1_HOME/conf/web.xml > $CATALINA2_HOME/conf/web.xml > $CATALINA3_HOME/conf/web.xml > ends with > > <distributable/> > </web-app> Your own application application in its WEB-INF/web.xml must be marked as distributable. I doubt that changing the above server-wide defaults helps you. > $CATALINA1_HOME/logs/catalina.out - startup > 06-Feb-2015 16:49:43.449 WARNING [main] > org.apache.tomcat.util.digester.SetPropertiesRule.begin > [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property > 'docbase' to '' did not find a matching property. Do not put <Context> elements into server.xml. That is a really bad practice. See Context element in Configuration Reference Guide, webapps/docs/config/context.html Be careful with typos. XML files are case-sensitive. There is no such attribute as "docbase". Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org