tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Bettiol <john.bett...@virginblue.com.au>
Subject Tomcat session replication using javagroups.. free dinner in BNE for the best helper :)
Date Fri, 11 Jul 2003 00:23:15 GMT
I am going crazy...

I have two 4.1 tomcat's set up like thus:

                  <Logger className="org.apache.catalina.logger.FileLogger"
                              prefix="localhost_reptest_log." suffix=".txt"
                                  timestamp="true"/>
                  <Valve 
className="org.apache.catalina.session.ReplicationValve"
                         filter=".*\.gif;.*\.jpg;.*\.jpeg;.*\.js"
                         debug="10"/>
                  <Manager 
className="org.apache.catalina.session.InMemoryReplicationManager"
                              debug="10"
                              printToScreen="true"
                              saveOnRestart="false"
                              maxActiveSessions="-1"
                              minIdleSwap="-1"
                              maxIdleSwap="-1"
                              maxIdleBackup="-1"
                              pathnam="null"
                              pathname=""
                              printSessionInfo="true"
                              checkInterval="10"
                              expireSessionsOnShutdown="false"
                              
serviceclass="org.apache.catalina.cluster.mcast.McastService"
                              mcastAddr="192.168.2.22"
                              crap="228.1.2.3"
                              mcastPort="45566"
                              mcastFrequency="500"
                              mcastDropTime="5000"
                              tcpListenAddress="auto"
                              tcpListenPort="4002"
                              tcpSelectorTimeout="100"
                              tcpThreadCount="2"
                              useDirtyFlag="true">
                  </Manager>

I have changed useDirtyFlag and the mcastAddr... but not much has changed (in 
the way of errors)...

I have these jar's included in /server/lib:
javagroups-all.jar, tomcat-replication.jar, tomcat-javagroups.jar



This is what happens when I try to use the replicator:

==> /usr/local/tomcat2/logs/catalina_log.2003-07-11.txt <==
2003-07-11 10:02:59 Ajp13Processor[12009][4] process: invoke
java.lang.NoSuchMethodError: 
org.apache.catalina.session.InMemoryReplicationManager.requestCompleted(Ljava/lang/String;)V
        at 
org.apache.catalina.session.ReplicationValve.invoke(ReplicationValve.java:210)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
        at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
        at java.lang.Thread.run(Thread.java:536)


==> /usr/local/tomcat2/logs/localhost_reptest_log.2003-07-11.txt <==
2003-07-11 10:02:59 StandardWrapperValve[invoker]: Servlet.service() for 
servlet invoker threw exception
javax.servlet.ServletException: Invoker service() exception
        at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:524)
        at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
        at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
        at 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at 
org.apache.catalina.session.ReplicationValve.invoke(ReplicationValve.java:163)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
        at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
        at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
        at java.lang.Thread.run(Thread.java:536)
----- Root Cause -----
java.lang.StackOverflowError
        at 
org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1092)
        at 
org.apache.catalina.session.ReplicatedSession.removeAttribute(ReplicatedSession.java:200)
        at 
org.apache.catalina.session.ReplicatedSession.removeAttribute(ReplicatedSession.java:220)
        at 
org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1092)
        at 
org.apache.catalina.session.ReplicatedSession.removeAttribute(ReplicatedSession.java:200)

....




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message