Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 64057 invoked from network); 4 Apr 2006 11:51:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 11:51:08 -0000 Received: (qmail 42284 invoked by uid 500); 4 Apr 2006 11:50:56 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 42255 invoked by uid 500); 4 Apr 2006 11:50:56 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 42236 invoked by uid 99); 4 Apr 2006 11:50:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 04:50:56 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of amilasuriarachchi@gmail.com designates 66.249.82.207 as permitted sender) Received: from [66.249.82.207] (HELO xproxy.gmail.com) (66.249.82.207) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 04:50:55 -0700 Received: by xproxy.gmail.com with SMTP id t16so1002270wxc for ; Tue, 04 Apr 2006 04:50:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=bi/qzpGncP6cXrPVQUXbZpL7S0ADvgth423Wfjrzq8xlPS5e0YNCEk41vI1HfZ/yLzSnoPquP64CwddBmlXMsIvKiG2wUhnYSq/8ykHdyyOMUhRmB8hZxCOOSXha9XkiML3y/nJZJpmpbWr35gypPxhWLFqzNOGYeSAllnu6/Ks= Received: by 10.70.78.11 with SMTP id a11mr348954wxb; Tue, 04 Apr 2006 04:50:34 -0700 (PDT) Received: by 10.70.109.8 with HTTP; Tue, 4 Apr 2006 04:50:34 -0700 (PDT) Message-ID: <60708f4b0604040450u9ce096cp7669b06485066c94@mail.gmail.com> Date: Tue, 4 Apr 2006 17:50:34 +0600 From: "Amila Suriarachchi" To: "Tomcat Users List" Subject: cluster prblem MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17676_18086286.1144151434704" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_17676_18086286.1144151434704 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hi, I created a tomcat cluster (using tomcat 5.5.15 and jdk 1.5.0_06 in linux) with two nodes, by uncommenting the existing cluster element in server.xml and changing the tcplisten ports. And I created a web application to test the cluster (put and entry in web.xml). Then I deployed the application in both servers and started the servers. When I see the logs there are no errros and every things seems to be ok. Then I access the application of one server, and see the nummber of session= s of that application in both servers using tomcat manager. Here I found that both nodes have sessions and according to my application i think that session is being replicated. But when i check the catalina.out it has following exception. SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connectio= n reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChanne= l (TcpReplicationThread.java:125) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run( TcpReplicationThread.java:69) And also In my web application I have a class which implements the HttpSessionActivationListener, HttpSessionBindingListener and Serializable interfaces. and I store an instance of this class as an attribute of the httpSession. In this case I think the sessionWillPassivate and sessionDidActivate should be called when the session is replicated across different jvms. But it seems this does not happens. (i.e. it does not print my log messages) can someone explain this, amila. ------=_Part_17676_18086286.1144151434704--