configuration

tomcat1 and tomcat 2 load balanced with mod_jk with apache 

in the tomcat server.xml file i have clustering enabled and i have the following for 
10 different hosts. The web.xml file for each host has the 

<distributable/>

<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
name="etrakCluster1"
debug="100"
serviceclass="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="224.0.0.1"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"
tcpThreadCount="2"
tcpListenAddress="auto"
tcpListenPort="10001"
tcpSelectorTimeout="100"
printToScreen="true"
expireSessionsOnShutdown="false"
useDirtyFlag="false"
replicationMode="synchronous"
/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="etrakCluster1_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>


i am reciving the fowling when i kill one of the 2 tomcat instances and also recive a 
html error message as follows

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to 
complete your request. Please contact the server administrator, [EMAIL PROTECTED] and 
inform them of the time the error occurred, and anything you might have done that may 
have caused the error. More information about this error may be available in the 
server error log. Apache/1.3.29 Server at www.etrak-plus.com Port 80
and i get this in the log.
Dec 22, 2003 2:08:21 PM 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager log
SEVERE: Unable to receive message through TCP channel
java.lang.IllegalStateException: getAttributeNames: Session already invalidated
at 
org.apache.catalina.session.StandardSession.getAttributeNames(StandardSession.java:1005)
at 
org.apache.catalina.cluster.session.ReplicatedSession.toString(ReplicatedSession.java:272)
at java.lang.String.valueOf(String.java:2131)
at java.lang.StringBuffer.append(StringBuffer.java:370)
at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageReceived(SimpleTcpReplicationManager.java:620)
at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageDataReceived(SimpleTcpReplicationManager.java:653)
at 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleTcpCluster.java:678)
at org.apache.catalina.cluster.io.ObjectReader.append(ObjectReader.java:110)
at 
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:167)
at 
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:113)
at 
org.apache.catalina.cluster.session.ReplicatedSession.toString(ReplicatedSession.java:272)
at java.lang.String.valueOf(String.java:2131)
at java.lang.StringBuffer.append(StringBuffer.java:370)
at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageReceived(SimpleTcpReplicationManager.java:620)
at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.messageDataReceived(SimpleTcpReplicationManager.java:653)
at 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleTcpCluster.java:678)
at org.apache.catalina.cluster.io.ObjectReader.append(ObjectReader.java:110)
at 
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:167)
at 
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:113)
Dec 22, 2003 2:08:21 PM 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager log


does any one have anyidea why this would be happing?

is it a configuration that i missed?



Thanks,

Daniel Schulken


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 12/20/2003

Reply via email to