Hi Filip, Yes my logs show those member discovery. The screenshots of logs of two instances are given below: *Log on Instance 1: (started first)*
Jun 3, 2008 11:13:52 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property. Jun 3, 2008 11:13:53 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments w as not found on the java.library.path: G:\RealNetworks\JDK1.5.0_15\bin;.;C:\WINDOWS\system32;C:\WINDOWS;G:\Rea lNetworks\apache-maven-2.0.9\bin;E:\oracle\ora92\bin;E:\Installed-Tools\ant\bin;G:\RealNetworks\JDK1.5.0_15\bi n;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;e:\ematrix-installation\matrix-rmi\bin\winnt;G:\Real Networks\JDK1.5.0_15\jre\bin;G:\RealNetworks\JDK1.5.0_15\jre\bin\client;P±↕ Jun 3, 2008 11:13:53 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jun 3, 2008 11:13:53 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 707 ms Jun 3, 2008 11:13:53 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jun 3, 2008 11:13:53 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 Jun 3, 2008 11:13:53 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Jun 3, 2008 11:13:53 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSende r,host=localhost Jun 3, 2008 11:13:53 AM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 milliseconds to establish cluster membership Jun 3, 2008 11:13:55 AM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jun 3, 2008 11:13:56 AM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "listeners.ContextListener" is already configured for this context. The duplicate definitio n has been ignored. Jun 3, 2008 11:13:56 AM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "listeners.SessionListener" is already configured for this context. The duplicate definitio n has been ignored. Jun 3, 2008 11:13:56 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jun 3, 2008 11:13:56 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jun 3, 2008 11:13:56 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/31 config=null Jun 3, 2008 11:13:56 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 3439 ms Jun 3, 2008 11:14:06 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp:// 172.22.137.252:4002,catalin a,172.22.137.252,4002, alive=0] *Log on Instance 2:* Jun 3, 2008 11:14:03 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property. Jun 3, 2008 11:14:03 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments w as not found on the java.library.path: G:\RealNetworks\JDK1.5.0_15\bin;.;C:\WINDOWS\system32;C:\WINDOWS;G:\Rea lNetworks\apache-maven-2.0.9\bin;E:\oracle\ora92\bin;E:\Installed-Tools\ant\bin;G:\RealNetworks\JDK1.5.0_15\bi n;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;e:\ematrix-installation\matrix-rmi\bin\winnt;G:\Real Networks\JDK1.5.0_15\jre\bin;G:\RealNetworks\JDK1.5.0_15\jre\bin\client;P±↕ Jun 3, 2008 11:14:04 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8081 Jun 3, 2008 11:14:04 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 712 ms Jun 3, 2008 11:14:04 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jun 3, 2008 11:14:04 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 Jun 3, 2008 11:14:04 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Jun 3, 2008 11:14:04 AM org.apache.catalina.cluster.tcp.ReplicationTransmitter start INFO: Start ClusterSender at cluster Catalina:type=Cluster,host=localhost with name Catalina:type=ClusterSende r,host=localhost Jun 3, 2008 11:14:04 AM org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket INFO: Setting cluster mcast soTimeout to 500 Jun 3, 2008 11:14:04 AM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 milliseconds to establish cluster membership Jun 3, 2008 11:14:04 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp:// 172.22.137.252:4001,catalin a,172.22.137.252,4001, alive=9016] Jun 3, 2008 11:14:06 AM org.apache.catalina.cluster.mcast.McastService registerMBean INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jun 3, 2008 11:14:07 AM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "listeners.ContextListener" is already configured for this context. The duplicate definitio n has been ignored. Jun 3, 2008 11:14:07 AM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "listeners.SessionListener" is already configured for this context. The duplicate definitio n has been ignored. Jun 3, 2008 11:14:07 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8081 Jun 3, 2008 11:14:07 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:9009 Jun 3, 2008 11:14:07 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/31 config=null Jun 3, 2008 11:14:07 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 3483 ms Thanks again. Gangadhar On 6/2/08, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > > POST your log, does it show member discovery? > > Filip > > Gangadhar Prusty wrote: > >> Hi, >> >> My logs don't show any error/warning messages. >> >> But it still doesn't replicate/share the ServletContext attributes. >> >> Does the addition of below element in the *context.xml* mean that the * >> ServletContext* attributes are replicated/shared across other cluster >> members? >> >> <Context className="org.apache.catalina.ha.context.ReplicatedContext"/> >> >> >> >> Thanks again. >> >> >> >> >> >> On 6/2/08, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: >> >> >>> what do your logs say? >>> >>> gangadhar p wrote: >>> >>> >>> >>>> Hi Filip, >>>> Thanks for your prompt response. >>>> I added an attribute to the ServletContext object in one instance and >>>> tried >>>> to access the same attribute in another instance and it returns null. >>>> >>>> The <Cluster> (in server.xml) element has the attribute >>>> managerClassName=org.apache.catalina.cluster.session.DeltaManager ? Or >>>> org.apache.catalina.session.PersistentReplicationManager is required to >>>> be >>>> set? >>>> Do you want to see my server.xml files and code? >>>> Thank you again. >>>> >>>> >>>> Filip Hanik - Dev Lists wrote: >>>> >>>> >>>> >>>> >>>>> what does your log say? >>>>> >>>>> Filip >>>>> >>>>> gangadhar p wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Hi Guys, The Tomcat 6 documentation >>>>>> (http://tomcat.apache.org/tomcat-6.0-doc/config/cluster.html) says >>>>>> that >>>>>> the >>>>>> Context (ServletContext, right ?) attributes are replicated across >>>>>> cluster >>>>>> members when the below element is added in either >>>>>> <tomcat-home>\conf\server.xml or <tomcat-home>\conf\context.xml file. >>>>>> <Context >>>>>> className="org.apache.catalina.ha.context.ReplicatedContext"/> >>>>>> >>>>>> But actually the ServletContext attributes are not replicated across >>>>>> all >>>>>> other cluster members!!! >>>>>> >>>>>> The added contents in my server.xml is given below: >>>>>> >>>>>> <Cluster >>>>>> className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" >>>>>> >>>>>> managerClassName="org.apache.catalina.cluster.session.DeltaManager" >>>>>> expireSessionsOnShutdown="false" >>>>>> useDirtyFlag="true"> >>>>>> >>>>>> <Membership >>>>>> className="org.apache.catalina.cluster.mcast.McastService" >>>>>> mcastAddr="228.0.0.4" >>>>>> mcastPort="45564" >>>>>> mcastFrequency="500" >>>>>> mcastDropTime="3000"/> >>>>>> >>>>>> <Receiver >>>>>> className="org.apache.catalina.cluster.tcp.ReplicationListener" >>>>>> tcpListenAddress="127.0.0.1" >>>>>> tcpListenPort="4001" >>>>>> tcpSelectorTimeout="100" >>>>>> tcpThreadCount="6"/> >>>>>> >>>>>> <Sender >>>>>> >>>>>> className="org.apache.catalina.cluster.tcp.ReplicationTransmitter" >>>>>> replicationMode="pooled"/> >>>>>> <Valve >>>>>> className="org.apache.catalina.cluster.tcp.ReplicationValve" >>>>>> >>>>>> filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/> >>>>>> <ClusterListener >>>>>> >>>>>> className="org.apache.catalina.cluster.session.ClusterSessionListener"/> >>>>>> >>>>>> </Cluster> >>>>>> <Context path="" >>>>>> docBase="G:\RealNetworks\apache-tomcat-6.0.16\webapps\ROOT" >>>>>> crossContext="true" debug="0" reloadable="true" privileged="true"/> >>>>>> >>>>>> And the added contents in config.xml file is given below: >>>>>> >>>>>> <Context className="org.apache.catalina.ha.context.ReplicatedContext"> >>>>>> >>>>>> Any modifications required? >>>>>> Any suggestions would be highly appreciated. >>>>>> Thanks in advance. >>>>>> >>>>>> >>>>>> >>>>>> >>>>> --------------------------------------------------------------------- >>>>> To start a new topic, e-mail: users@tomcat.apache.org >>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To start a new topic, e-mail: users@tomcat.apache.org >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> >> ------------------------------------------------------------------------ >> >> No virus found in this incoming message. >> Checked by AVG. Version: 7.5.524 / Virus Database: 269.24.4/1477 - Release >> Date: 6/1/2008 5:28 PM >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >