Yesterday,i run msm with one tomcat and three memcached ok.

but today.i try 1 nginx - 2 tomcat(6.0) loadbanlance.

i login my web by route to tomcat1 and then route to tomcat2 , so it
throws
noSuchMethodException: :org.apache.catalina.connector.Request.changeSessionId

why it should be this?
this is my conf:

<tomcat1>:
conf.xml:

<Manager
className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
memcachedNodes="n1:localhost:11211,n2:localhost:
11212,n3:localhost:11213"
failoverNodes="n1"
requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFactory"
/>


sever.xml: <Engine name="Catalina" defaultHost="miwucc.gicp.net"
jvmRoute="tomcat1">

<tomcat2>:
conf.xml:

<Manager
className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
memcachedNodes="n1:localhost:11211,n2:localhost:
11212,n3:localhost:11213"
failoverNodes="n1"
requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFactory"
/>


sever.xml: <Engine name="Catalina" defaultHost="miwucc.gicp.net"
jvmRoute="tomcat2">

this is the exception:

java.lang.NoSuchMethodError:
org.apache.catalina.connector.Request.changeSessionId(Ljava/lang/
String;)V
at
de.javakaffee.web.msm.SessionTrackerValve.changeRequestedSessionId(SessionTrackerValve.java:
198)
at
de.javakaffee.web.msm.SessionTrackerValve.invoke(SessionTrackerValve.java:
125)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
568)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:662)

Search Discussions

  • Martin Grotzke at Dec 27, 2011 at 2:26 pm
    Hi,

    it seems as if you're using an older tomcat6. AFAICS
    Request.changeSessionId was added in tomcat 6.0.21. Can you upgrade your
    tomcat to a newer version?

    Btw, if nginx is not configured to support sticky sessions (but
    non-sticky / round-robin instead), you should also configure msm with
    sticky="false" (see also
    http://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration).

    Cheers,
    Martin

    On 12/27/2011 07:46 AM, miwucc wrote:
    Yesterday,i run msm with one tomcat and three memcached ok.

    but today.i try 1 nginx - 2 tomcat(6.0) loadbanlance.

    i login my web by route to tomcat1 and then route to tomcat2 , so it
    throws
    noSuchMethodException: :org.apache.catalina.connector.Request.changeSessionId

    why it should be this?
    this is my conf:

    <tomcat1>:
    conf.xml:

    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:localhost:11211,n2:localhost:
    11212,n3:localhost:11213"
    failoverNodes="n1"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

    transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFactory"
    />


    sever.xml: <Engine name="Catalina" defaultHost="miwucc.gicp.net"
    jvmRoute="tomcat1">

    <tomcat2>:
    conf.xml:

    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:localhost:11211,n2:localhost:
    11212,n3:localhost:11213"
    failoverNodes="n1"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

    transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFactory"
    />


    sever.xml: <Engine name="Catalina" defaultHost="miwucc.gicp.net"
    jvmRoute="tomcat2">

    this is the exception:

    java.lang.NoSuchMethodError:
    org.apache.catalina.connector.Request.changeSessionId(Ljava/lang/
    String;)V
    at
    de.javakaffee.web.msm.SessionTrackerValve.changeRequestedSessionId(SessionTrackerValve.java:
    198)
    at
    de.javakaffee.web.msm.SessionTrackerValve.invoke(SessionTrackerValve.java:
    125)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
    128)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
    102)
    at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
    568)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
    109)
    at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
    286)
    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
    844)
    at org.apache.coyote.http11.Http11Protocol
    $Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
    447)
    at java.lang.Thread.run(Thread.java:662)
  • Miwucc at Dec 30, 2011 at 10:34 am
    yes~i update my tomcat to 6.0.35 and it is ok now.thanks
    On 12月27日, 下午10时26分, Martin Grotzke wrote:
    Hi,

    it seems as if you're using an older tomcat6. AFAICS
    Request.changeSessionId was added in tomcat 6.0.21. Can you upgrade your
    tomcat to a newer version?

    Btw, if nginx is not configured to support sticky sessions (but
    non-sticky / round-robin instead), you should also configure msm with
    sticky="false" (see alsohttp://code.google.com/p/memcached-session-manager/wiki/SetupAndConfi...).

    Cheers,
    Martin

    On 12/27/2011 07:46 AM, miwucc wrote:






    Yesterday,i run msm with one tomcat and three memcached ok.
    but today.i try 1 nginx - 2 tomcat(6.0)  loadbanlance.
    i login my web by route to tomcat1 and then route to tomcat2 , so it
    throws
    noSuchMethodException: :org.apache.catalina.connector.Request.changeSessionId
    why it should be this?
    this is my conf:
    <tomcat1>:
    conf.xml:
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:localhost:11211,n2:localhost:
    11212,n3:localhost:11213"
    failoverNodes="n1"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
    transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFa ctory"
    />
    sever.xml:  <Engine name="Catalina" defaultHost="miwucc.gicp.net"
    jvmRoute="tomcat1">
    <tomcat2>:
    conf.xml:
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:localhost:11211,n2:localhost:
    11212,n3:localhost:11213"
    failoverNodes="n1"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
    transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFa ctory"
    />
    sever.xml:  <Engine name="Catalina" defaultHost="miwucc.gicp.net"
    jvmRoute="tomcat2">
    this is the exception:
    java.lang.NoSuchMethodError:
    org.apache.catalina.connector.Request.changeSessionId(Ljava/lang/
    String;)V
    at
    de.javakaffee.web.msm.SessionTrackerValve.changeRequestedSessionId(SessionT rackerValve.java:
    198)
    at
    de.javakaffee.web.msm.SessionTrackerValve.invoke(SessionTrackerValve.java:
    125)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
    128)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
    102)
    at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
    568)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a:
    109)
    at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
    286)
    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
    844)
    at org.apache.coyote.http11.Http11Protocol
    $Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
    447)
    at java.lang.Thread.run(Thread.java:662)


    signature.asc
    < 1K查看下载
  • Martin Grotzke at Dec 30, 2011 at 12:18 pm
    Great!

    Am 30.12.2011 11:34 schrieb "miwucc" <xxlforest@gmail.com>:
    yes~i update my tomcat to 6.0.35 and it is ok now.thanks
    On 12月27日, 下午10时26分, Martin Grotzke wrote:
    Hi,

    it seems as if you're using an older tomcat6. AFAICS
    Request.changeSessionId was added in tomcat 6.0.21. Can you upgrade your
    tomcat to a newer version?

    Btw, if nginx is not configured to support sticky sessions (but
    non-sticky / round-robin instead), you should also configure msm with
    sticky="false" (see alsohttp://
    code.google.com/p/memcached-session-manager/wiki/SetupAndConfi...).
    Cheers,
    Martin

    On 12/27/2011 07:46 AM, miwucc wrote:






    Yesterday,i run msm with one tomcat and three memcached ok.
    but today.i try 1 nginx - 2 tomcat(6.0) loadbanlance.
    i login my web by route to tomcat1 and then route to tomcat2 , so it
    throws
    noSuchMethodException:
    :org.apache.catalina.connector.Request.changeSessionId
    why it should be this?
    this is my conf:
    <tomcat1>:
    conf.xml:
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:localhost:11211,n2:localhost:
    11212,n3:localhost:11213"
    failoverNodes="n1"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
    transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFa
    ctory"
    />
    sever.xml: <Engine name="Catalina" defaultHost="miwucc.gicp.net"
    jvmRoute="tomcat1">
    <tomcat2>:
    conf.xml:
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:localhost:11211,n2:localhost:
    11212,n3:localhost:11213"
    failoverNodes="n1"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
    transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFa
    ctory"
    />
    sever.xml: <Engine name="Catalina" defaultHost="miwucc.gicp.net"
    jvmRoute="tomcat2">
    this is the exception:
    java.lang.NoSuchMethodError:
    org.apache.catalina.connector.Request.changeSessionId(Ljava/lang/
    String;)V
    at
    de.javakaffee.web.msm.SessionTrackerValve.changeRequestedSessionId(SessionT
    rackerValve.java:
    198)
    at
    de.javakaffee.web.msm.SessionTrackerValve.invoke(SessionTrackerValve.java:
    125)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
    128)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
    102)
    at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
    568)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
    a:
    109)
    at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
    286)
    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
    844)
    at org.apache.coyote.http11.Http11Protocol
    $Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
    447)
    at java.lang.Thread.run(Thread.java:662)


    signature.asc
    < 1K查看下载

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmemcached-session-manager @
categoriesmemcached
postedDec 27, '11 at 12:30p
activeDec 30, '11 at 12:18p
posts4
users2
websitememcached.org

2 users in discussion

Martin Grotzke: 2 posts Miwucc: 2 posts

People

Translate

site design / logo © 2022 Grokbase