Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 15301 invoked from network); 18 Apr 2006 21:20:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Apr 2006 21:20:37 -0000 Received: (qmail 88478 invoked by uid 500); 18 Apr 2006 21:20:34 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 88428 invoked by uid 500); 18 Apr 2006 21:20:34 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 88417 invoked by uid 99); 18 Apr 2006 21:20:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 14:20:34 -0700 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.86.89.65] (HELO elasmtp-kukur.atl.sa.earthlink.net) (209.86.89.65) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 14:20:33 -0700 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=fG8Yzyt1Pc2bRYtk0VC9W1xkz41gEQhqTBa1A49zJ2Eu4YwqXdIM7ab5Upv8+yVw; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; Received: from [129.33.49.251] (helo=[9.37.214.138]) by elasmtp-kukur.atl.sa.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1FVxcK-0007Yp-0i for dev@geronimo.apache.org; Tue, 18 Apr 2006 17:20:12 -0400 Message-ID: <4445580A.4010401@earthlink.net> Date: Tue, 18 Apr 2006 17:20:10 -0400 From: Dave Colasurdo User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: Tomcat version in G1.1 for clustering References: <443AAF30.1050306@earthlink.net> <443ADB3C.8090203@apache.org> <443ADFF0.3090709@kippdata.de> <443AE17E.7000901@apache.org> <443F9F1F.6000908@earthlink.net> <443FA3D7.3070701@apache.org> <4445112B.7000902@earthlink.net> <444523AD.2000708@apache.org> <44454AE0.3020201@earthlink.net> <44454C11.9060904@hanik.com> In-Reply-To: <44454C11.9060904@hanik.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: 7fb197089e559ffc1aa676d7e74259b7b3291a7d08dfec79c3ee80d2263ca1f0a65aa5aa48f40cdd350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 129.33.49.251 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks Filip!! http://mail-archives.apache.org/mod_mbox/tomcat-users/200512.mbox/%3c63770.72.64.65.166.1135363511.squirrel@www.hanik.com%3e seems to indicate that it is fixed in 5.5.15.. Is it fixed in 5.5.15 or 5.5.16? Thanks -Dave- Filip Hanik - Dev Lists wrote: > Clustering was broken in Tomcat 5.5.10-5.5.15 due to a protocol change, > this was corrected in 5.5.16. > I would run the tests again that version, and then I can help you out > with any problems you run into. > > Filip > > > Dave Colasurdo wrote: >> Jeff, >> >> Upgraded tomcat, tomcat_ajp and jasper to 5.5.15 and ran the >> clustering tests. >> >> The *good* news... >> Load balancing, sticky session, session replication and session >> failover seem to work using the same deployment plan that was created >> for G1.1 w/ TC 5.5.9.. >> >> The *bad* news... >> >> *Problem1* >> When testing Sticky session, my browser locks unto a particular >> cluster member (e.g. node1) due to the nodeid in the cookie. If I kill >> node1, the session fails over into node2 and all my session data is >> still present. This is good. >> The nodeid in the cookie continues to say node1 (this is also true w/ >> TC 5.5.9 w/ and mod-jk).. >> >> Now, if I restart node1 and wait a minute or so and then hit my >> browser, I am directed to node1 and all my session data is gone. :( >> BTW, an earlier run using TC 5.5.9 also resulted in being directed >> back to node1 though the httpsession is retained. I think this may be >> related to problems replicating data whenever nodes are added.. >> Which leads me to ... >> >> >> *Problem2* >> Whenever a cluster member is added to the cluster, the other nodes >> receive the following exception. This occurs both during the initial >> addition of a node and after a stopped node is restarted... >> >> (Though later when I access an httpsession (via a servlet request)it >> does result in session replication between members.) >> >> 15:30:19,352 INFO [SimpleTcpCluster] Replication member >> added:org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.14.160 >> :4001,catalina,192.168.14.160,4001 >> , alive=0] >> 15:30:19,692 ERROR [SimpleTcpCluster] Unable to send message through >> cluster sender. >> java.io.IOException: Sender not available. Make sure sender >> information is available to the ReplicationTransmitter. >> at >> org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessageDat >> a(ReplicationTransmitter.java:857) >> at >> org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessage(Re >> plicationTransmitter.java:430) >> at >> org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(SimpleTcpCluste >> r.java:1074) >> at >> org.apache.catalina.cluster.session.DeltaManager.sendSessions(DeltaMa >> nager.java:1690) >> at >> org.apache.catalina.cluster.session.DeltaManager.handleGET_ALL_SESSIO >> NS(DeltaManager.java:1629) >> at >> org.apache.catalina.cluster.session.DeltaManager.messageReceived(Delt >> aManager.java:1443) >> at >> org.apache.catalina.cluster.session.DeltaManager.messageDataReceived( >> DeltaManager.java:1225) >> at >> org.apache.catalina.cluster.session.ClusterSessionListener.messageRec >> eived(ClusterSessionListener.java:85) >> at >> org.apache.catalina.cluster.tcp.SimpleTcpCluster.receive(SimpleTcpClu >> ster.java:1160) >> at >> org.apache.catalina.cluster.tcp.ClusterReceiverBase.messageDataReceiv >> ed(ClusterReceiverBase.java:418) >> at >> org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java >> :107) >> at >> org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(Tcp >> ReplicationThread.java:131) >> at >> org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicati >> onThread.java:69) >> 15:30:19,692 ERROR [SimpleTcpCluster] Unable to send message through >> cluster sen >> der. >> java.io.IOException: Sender not available. Make sure sender >> information is avail >> able to the ReplicationTransmitter. >> at >> org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessageDat >> a(ReplicationTransmitter.java:857) >> at >> org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessage(Re >> plicationTransmitter.java:430) >> at >> org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(SimpleTcpCluste >> r.java:1074) >> at >> org.apache.catalina.cluster.session.DeltaManager.handleGET_ALL_SESSIO >> NS(DeltaManager.java:1660) >> at >> org.apache.catalina.cluster.session.DeltaManager.messageReceived(Delt >> aManager.java:1443) >> at >> org.apache.catalina.cluster.session.DeltaManager.messageDataReceived( >> DeltaManager.java:1225) >> at >> org.apache.catalina.cluster.session.ClusterSessionListener.messageRec >> eived(ClusterSessionListener.java:85) >> at >> org.apache.catalina.cluster.tcp.SimpleTcpCluster.receive(SimpleTcpClu >> ster.java:1160) >> at >> org.apache.catalina.cluster.tcp.ClusterReceiverBase.messageDataReceiv >> ed(ClusterReceiverBase.java:418) >> at >> org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java >> :107) >> at >> org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(Tcp >> ReplicationThread.java:131) >> at >> org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicati >> onThread.java:69) >> >> *Problem3* >> Getting a bunch of exceptions relating to session invalidation >> >> [snip] >> java.lang.IllegalStateException: getId: Session already invalidated >> [snip] >> >> This one may not be new.. >> >> >> Thanks >> -Dave- >> >> >> Jeff Genender wrote: >>> Dave, >>> >>> Thanks for doing this. >>> >>> Jeff >>> >>> Dave Colasurdo wrote: >>>> I've validated that the Geronimo clustering example >>>> (http://opensource.atlassian.com/confluence/oss/display/GERONIMO/Geronimo+Clustering+Example) >>>> >>>> still works for Geronimo 1.1 (with Tomcat 5.5.9). The application >>>> deployment plan (attached to email) required some changes. >>>> >>>> I'm now rebuilding G1.1 with Tomcat 5.5.15 to determine if the >>>> clustering Gbeans and plans still work.. >>>> >>>> -Dave- >>>> >>>> Jeff Genender wrote: >>>>> IIRC, 5.5.15 went to backward compatibility... >>>>> >>>>> http://mail-archives.apache.org/mod_mbox/tomcat-users/200512.mbox/%3c63770.72.64.65.166.1135363511.squirrel@www.hanik.com%3e >>>>> >>>>> >>>>> >>>>> Perhaps Filip can fill us in on this. >>>>> >>>>> If I remember right, the 5.5.9 clustering GBeans will work on forward >>>>> versions. So I don't think there is a problem there. HEAD has >>>>> been set >>>>> to 5.5.15 for quite some time. >>>>> >>>>> Nevertheless, it doesn't hurt to try em out ;-) >>>>> >>>>> Jeff >>>>> >>>>> Dave Colasurdo wrote: >>>>>> Jeff (et al.), >>>>>> >>>>>> Will G1.1 definitely be upgraded to Tomcat 5.5.15? >>>>>> >>>>>> IIRC, the clustering deployment plans were quite different for 5.5.9 >>>>>> -vs- 5.5.12. If we upgrade to 5.5.15, we will likely need a new plan >>>>>> that accounts for both the webcontainer upgrade as well as the new >>>>>> G1.1 >>>>>> plan format.. >>>>>> >>>>>> Thanks >>>>>> -Dave- >>>>>> >>>>>> Jeff Genender wrote: >>>>>>> Thanks Rainer. But I think 5.5.15 will be the one for 1.1. But >>>>>>> possibly 5.5.17 for 1.2 ;-) >>>>>>> >>>>>>> Jeff >>>>>>> >>>>>>> Rainer Jung wrote: >>>>>>>> Just for your information: 5.5.16 was released a couple of weeks >>>>>>>> ago, >>>>>>>> but has some problems with de delivered packaginf of examples app >>>>>>>> under >>>>>>>> windows. >>>>>>>> >>>>>>>> 5.5.17 is expected to be cut on friday and voted stable >>>>>>>> eventually 1-2 >>>>>>>> weeks later. >>>>>>>> >>>>>>>> Jeff Genender wrote: >>>>>>>>> Yep...need to update the plan. Its updated in trunk. >>>>>>>>> >>>>>>>>> Dave Colasurdo wrote: >>>>>>>>>> It appears that G1.1 is still using Tomcat 5.5.9 >>>>>>>>>> >>>>>>>>>> http://svn.apache.org/repos/asf/geronimo/branches/1.1/etc/project.properties >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Wasn't a tomcat upgrade to 5.5.15 in plan for G1.1?? Perhaps >>>>>>>>>> I am >>>>>>>>>> confused with the plans for trunk.. ?? >>>>>>>>>> >>>>>>>>>> Thanks >>>>>>>>>> -Dave- >>>>> >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"> >>>> >>>> geronimo >>>> servlets-examples-tomcat-cluster >>>> 1.1-SNAPSHOT >>>> car >>>> >>>> >>>> >>>> >>>> >>>> /servlets-examples-cluster >>>> false >>>> geronimo-properties-realm >>>> >>>> >>>> >>> class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"/> >>>> >>>> >>>> >>>> >>>> >>> class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"/> >>>> >>>> >>>> >>>> >>>> >>>> TomcatCluster >>>> >>>> >>>> >>> class="org.apache.geronimo.tomcat.cluster.CatalinaClusterGBean"> >>>> >>> name="className">org.apache.catalina.cluster.tcp.SimpleTcpCluster >>>> >>>> >>>> >>>> managerClassName=org.apache.catalina.cluster.session.DeltaManager >>>> expireSessionsOnShutdown=false >>>> useDirtyFlag=false >>>> notifyListenersOnReplication=true >>>> >>>> >>>> TomcatMembership >>>> >>>> TomcatReceiver >>> name="Sender"> TomcatSender >>>> ReplicationValve >>>> >>>> >>>> >>>> >>>> >>>> >>> class="org.apache.geronimo.tomcat.cluster.MembershipServiceGBean"> >>>> >>> name="className">org.apache.catalina.cluster.mcast.McastService >>>> >>>> >>>> mcastAddr=228.0.0.4 >>>> mcastBindAddress=xx.yy.zz.aa mcastPort=45564 >>>> mcastFrequency=500 >>>> mcastDropTime=3000 >>>> >>>> >>>> >>>> >>>> >>> class="org.apache.geronimo.tomcat.cluster.ReceiverGBean"> >>>> >>> name="className">org.apache.catalina.cluster.tcp.ReplicationListener >>>> >>>> >>>> tcpListenAddress=xx.yy.zz.aa tcpListenPort=4001 >>>> tcpSelectorTimeout=100 >>>> tcpThreadCount=6 >>>> >>>> >>>> >>>> >>> class="org.apache.geronimo.tomcat.cluster.SenderGBean"> >>>> >>> name="className">org.apache.catalina.cluster.tcp.ReplicationTransmitter >>>> >>>> >>>> replicationMode=pooled >>>> ackTimeout=15000 >>>> >>>> >>>> >>> class="org.apache.geronimo.tomcat.ValveGBean"> >>>> >>> name="className">org.apache.catalina.cluster.tcp.ReplicationValve >>>> >>>> >>>> >>>> filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt; >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >> > > >