tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Suriarachchi" <>
Subject cluster prblem
Date Tue, 04 Apr 2006 11:50:34 GMT
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
<distributable/> 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 sessions
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 ' Connection
reset by peer' closing channel Connection reset by peer
        at Method)
        at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel

And also
In my web application I have a class which implements the
HttpSessionActivationListener, HttpSessionBindingListener and Serializable
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,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message