hi all
i use two tomcat-6.0.26 including liferay portal in clustered with
hardwear F5 load balancer non-sticky i follow the steps in this wiki
http://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration
for session replication ??
i install the required jars and i edit my context.xml as the
following

<Manager
className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
     memcachedNodes="n1:192.168.1.198:8080,n2:192.168.1.158:8080"
     sticky="false"
     sessionBackupAsync="false"
     lockingMode="uriPattern:/path1|/path2"
     requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
     />

when i run my server i got this log Error


Mar 25, 2012 1:46:02 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/
client:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/
java-6-sun-1.6.0.26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/
usr/lib
Mar 25, 2012 1:46:02 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 524 ms
Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
startInternal
INFO: MemcachedSessionService starts initialization... (configured
nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
nodes null)
Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
setLockingMode
INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
createTranscoderFactory
INFO: Creating transcoder factory
de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
loadTranscoderFactoryClass
FINE: Loading transcoder factory class
de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
classloader WebappClassLoader
   delegate: false
   repositories:
     /WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@12dacd1

Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
SEVERE: Error manager.start()
java.lang.RuntimeException: Could not create transcoder factory.
  at
de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(MemcachedSessionService.java:
457)
  at
de.javakaffee.web.msm.MemcachedSessionService.createTranscoderService(MemcachedSessionService.java:
449)
  at
de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:
425)
  at
de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:
127)
  at
de.javakaffee.web.msm.MemcachedBackupSessionManager.start(MemcachedBackupSessionManager.java:
636)
  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
4476)
  at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
791)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
771)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
546)
  at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
637)
  at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
563)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
498)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
  at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
321)
  at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
119)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1053)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1045)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
443)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:
519)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:
710)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.ClassCastException: class
de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
  at java.lang.Class.asSubclass(Class.java:3018)
  at
de.javakaffee.web.msm.MemcachedSessionService.loadTranscoderFactoryClass(MemcachedSessionService.java:
529)
  at
de.javakaffee.web.msm.MemcachedSessionService.createTranscoderFactory(MemcachedSessionService.java:
514)
  at
de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(MemcachedSessionService.java:
455)
  ... 27 more
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
shutdown
INFO: Stopping services.
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
SEVERE: Exception during cleanup after start failed
java.lang.NullPointerException
  at
de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionService.java:
380)
  at
de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSessionManager.java:
669)
  at org.apache.catalina.core.StandardContext.stop(StandardContext.java:
4611)
  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
4512)
  at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
791)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
771)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
546)
  at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
637)
  at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
563)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
498)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
  at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
321)
  at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
119)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1053)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1045)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
443)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:
519)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:
710)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Mar 25, 2012 1:46:38 PM org.apache.tomcat.util.modeler.Registry
registerComponent
SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//
localhost/,J2EEApplication=none,J2EEServer=none
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Sharepoint Document Workspace Servlet] has not been
started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Clean Up Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Friendly URL Servlet - Private User] has not been
started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Combo Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Software Catalog Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Display Chart] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Friendly URL Servlet - Public] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Portal Delegator Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Netvibes Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Language Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Google Gadget Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Web Server Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Sharepoint Web Services Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Sharepoint Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Facebook Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[jsp] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Lucene Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Widget Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Main Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[I18n Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Image Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[default] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Sitemap Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Friendly URL Servlet - Private Group] has not been
started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[XML-RPC Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Poller Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
[localhost].[/].[Portlet Bridge Servlet] has not been started
Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase
addChildInternal
SEVERE: ContainerBase.addChild: start:
LifecycleException: Manager has not yet been started
  at
de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSessionManager.java:
651)
  at org.apache.catalina.core.StandardContext.stop(StandardContext.java:
4611)
  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
4540)
  at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
791)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
771)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
546)
  at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
637)
  at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
563)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
498)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
  at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
321)
  at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
119)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1053)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1045)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
443)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:
519)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:
710)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Mar 25, 2012 1:46:38 PM org.apache.catalina.startup.HostConfig
deployDescriptor
SEVERE: Error deploying configuration descriptor ROOT.xml
java.lang.IllegalStateException: ContainerBase.addChild: start:
LifecycleException: Manager has not yet been started
  at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
795)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
771)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
546)
  at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
637)
  at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
563)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
498)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
  at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
321)
  at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
119)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1053)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1045)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
443)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:
519)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:
710)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Search Discussions

  • Martin Grotzke at Mar 25, 2012 at 2:35 pm
    Can you post the contents of tomcats lib dir and WEB-INF/lib?

    Cheers,
    Martin

    Am 25.03.2012 16:28 schrieb "wolfateh" <wolfateh@gmail.com>:
    hi all
    i use two tomcat-6.0.26 including liferay portal in clustered with
    hardwear F5 load balancer non-sticky i follow the steps in this wiki

    http://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration
    for session replication ??
    i install the required jars and i edit my context.xml as the
    following

    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:192.168.1.198:8080,n2:192.168.1.158:8080"
    sticky="false"
    sessionBackupAsync="false"
    lockingMode="uriPattern:/path1|/path2"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"


    transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
    />

    when i run my server i got this log Error


    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.AprLifecycleListener
    init
    INFO: The APR based Apache Tomcat Native library which allows optimal
    performance in production environments was not found on the
    java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/
    client:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/
    java-6-sun-1.6.0.26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/
    usr/lib
    Mar 25, 2012 1:46:02 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 524 ms
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
    Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.HostConfig
    deployDescriptor
    INFO: Deploying configuration descriptor ROOT.xml
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@12dacd1

    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error manager.start()
    java.lang.RuntimeException: Could not create transcoder factory.
    at

    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(MemcachedSessionService.java:
    457)
    at

    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderService(MemcachedSessionService.java:
    449)
    at

    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:
    425)
    at

    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:
    127)
    at

    de.javakaffee.web.msm.MemcachedBackupSessionManager.start(MemcachedBackupSessionManager.java:
    636)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4476)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at

    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    39)
    at

    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.ClassCastException: class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    at java.lang.Class.asSubclass(Class.java:3018)
    at

    de.javakaffee.web.msm.MemcachedSessionService.loadTranscoderFactoryClass(MemcachedSessionService.java:
    529)
    at

    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderFactory(MemcachedSessionService.java:
    514)
    at

    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(MemcachedSessionService.java:
    455)
    ... 27 more
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [] startup failed due to previous errors
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    shutdown
    INFO: Stopping services.
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Exception during cleanup after start failed
    java.lang.NullPointerException
    at

    de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionService.java:
    380)
    at

    de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSessionManager.java:
    669)
    at
    org.apache.catalina.core.StandardContext.stop(StandardContext.java:
    4611)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4512)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at

    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    39)
    at

    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Mar 25, 2012 1:46:38 PM org.apache.tomcat.util.modeler.Registry
    registerComponent
    SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//
    localhost/,J2EEApplication=none,J2EEServer=none
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Sharepoint Document Workspace Servlet] has not been
    started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Clean Up Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Friendly URL Servlet - Private User] has not been
    started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Combo Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Software Catalog Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Display Chart] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Friendly URL Servlet - Public] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Portal Delegator Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Netvibes Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Language Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Google Gadget Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Web Server Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Sharepoint Web Services Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Sharepoint Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Facebook Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[jsp] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Lucene Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Widget Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Main Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[I18n Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Image Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[default] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Sitemap Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Friendly URL Servlet - Private Group] has not been
    started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[XML-RPC Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Poller Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Portlet Bridge Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase
    addChildInternal
    SEVERE: ContainerBase.addChild: start:
    LifecycleException: Manager has not yet been started
    at

    de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSessionManager.java:
    651)
    at
    org.apache.catalina.core.StandardContext.stop(StandardContext.java:
    4611)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4540)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at

    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    39)
    at

    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Mar 25, 2012 1:46:38 PM org.apache.catalina.startup.HostConfig
    deployDescriptor
    SEVERE: Error deploying configuration descriptor ROOT.xml
    java.lang.IllegalStateException: ContainerBase.addChild: start:
    LifecycleException: Manager has not yet been started
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    795)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at

    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    39)
    at

    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
  • Wolfateh at Mar 26, 2012 at 7:00 am
    the lib folder contained "memcached-session-manager-1.6.1.jar ,
    memcached-session-manager-tc6-1.6.1.jar , spymemcached-2.7.3.jar"
    and WEB-INF/lib contained "kryo-1.03.jar ,kryo-
    serializers-0.8.jar ,memcached-2.6.jar,memcached-session-
    manager-1.6.1.jar ,memcached-session-manager-tc6-1.6.1.jar,
    minlog-1.2.jar ,reflectasm-0.9.jar ,spymemcached-2.8.1.jar,"

    do i need any memcached service should be running ?
    On Mar 25, 5:35 pm, Martin Grotzke wrote:
    Can you post the contents of tomcats lib dir and WEB-INF/lib?

    Cheers,
    Martin

    Am 25.03.2012 16:28 schrieb "wolfateh" <wolfa...@gmail.com>:






    hi all
    i use two tomcat-6.0.26 including liferay portal  in clustered with
    hardwear F5 load balancer non-sticky i follow the steps in this wiki
    http://code.google.com/p/memcached-session-manager/wiki/SetupAndConfi...
    for session replication ??
    i install the required jars and i edit my context.xml as the
    following
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:192.168.1.198:8080,n2:192.168.1.158:8080"
    sticky="false"
    sessionBackupAsync="false"
    lockingMode="uriPattern:/path1|/path2"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
    transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscode rFactory"
    />
    when i run my server i got this log Error
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.AprLifecycleListener
    init
    INFO: The APR based Apache Tomcat Native library which allows optimal
    performance in production environments was not found on the
    java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/
    client:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/
    java-6-sun-1.6.0.26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/
    usr/lib
    Mar 25, 2012 1:46:02 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 524 ms
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
    Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.HostConfig
    deployDescriptor
    INFO: Deploying configuration descriptor ROOT.xml
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@12dacd1
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error manager.start()
    java.lang.RuntimeException: Could not create transcoder factory.
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache dSessionService.java:
    457)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderService(Memca chedSessionService.java:
    449)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessio nService.java:
    425)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(Memcached BackupSessionManager.java:
    127)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.start(MemcachedBackupSe ssionManager.java:
    636)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4476)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
    25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.ClassCastException: class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    at java.lang.Class.asSubclass(Class.java:3018)
    at
    de.javakaffee.web.msm.MemcachedSessionService.loadTranscoderFactoryClass(Me mcachedSessionService.java:
    529)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderFactory(Memca chedSessionService.java:
    514)
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache dSessionService.java:
    455)
    ... 27 more
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [] startup failed due to previous errors
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    shutdown
    INFO: Stopping services.
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Exception during cleanup after start failed
    java.lang.NullPointerException
    at
    de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionServ ice.java:
    380)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSes sionManager.java:
    669)
    at
    org.apache.catalina.core.StandardContext.stop(StandardContext.java:
    4611)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4512)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
    25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Mar 25, 2012 1:46:38 PM org.apache.tomcat.util.modeler.Registry
    registerComponent
    SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//
    localhost/,J2EEApplication=none,J2EEServer=none
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Sharepoint Document Workspace Servlet] has not been
    started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Clean Up Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Friendly URL Servlet - Private User] has not been
    started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Combo
    ...

    read more »
  • Martin Grotzke at Mar 26, 2012 at 8:36 am
    Hi,

    you should remove
    memcached-session-manager-1.6.1.jar
    memcached-session-manager-tc6-1.6.1.jar
    spymemcached-2.8.1.jar
    memcached-2.6.jar

    from WEB-INF/lib, they caused the ClassCastException.

    You should also have
    msm-kryo-serializers-1.6.1.jar
    in WEB-INF/lib, probably it's already there and was just missing in the
    listing of jars.

    Cheers,
    Martin

    On 03/26/2012 09:00 AM, wolfateh wrote:
    the lib folder contained "memcached-session-manager-1.6.1.jar ,
    memcached-session-manager-tc6-1.6.1.jar , spymemcached-2.7.3.jar"
    and WEB-INF/lib contained "kryo-1.03.jar ,kryo-
    serializers-0.8.jar ,memcached-2.6.jar,memcached-session-
    manager-1.6.1.jar ,memcached-session-manager-tc6-1.6.1.jar,
    minlog-1.2.jar ,reflectasm-0.9.jar ,spymemcached-2.8.1.jar,"

    do i need any memcached service should be running ?
    On Mar 25, 5:35 pm, Martin Grotzke wrote:
    Can you post the contents of tomcats lib dir and WEB-INF/lib?

    Cheers,
    Martin

    Am 25.03.2012 16:28 schrieb "wolfateh" <wolfa...@gmail.com>:






    hi all
    i use two tomcat-6.0.26 including liferay portal in clustered with
    hardwear F5 load balancer non-sticky i follow the steps in this wiki
    http://code.google.com/p/memcached-session-manager/wiki/SetupAndConfi...
    for session replication ??
    i install the required jars and i edit my context.xml as the
    following
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:192.168.1.198:8080,n2:192.168.1.158:8080"
    sticky="false"
    sessionBackupAsync="false"
    lockingMode="uriPattern:/path1|/path2"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
    transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscode rFactory"
    />
    when i run my server i got this log Error
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.AprLifecycleListener
    init
    INFO: The APR based Apache Tomcat Native library which allows optimal
    performance in production environments was not found on the
    java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/
    client:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/
    java-6-sun-1.6.0.26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/
    usr/lib
    Mar 25, 2012 1:46:02 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 524 ms
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
    Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.HostConfig
    deployDescriptor
    INFO: Deploying configuration descriptor ROOT.xml
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@12dacd1
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error manager.start()
    java.lang.RuntimeException: Could not create transcoder factory.
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache dSessionService.java:
    457)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderService(Memca chedSessionService.java:
    449)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessio nService.java:
    425)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(Memcached BackupSessionManager.java:
    127)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.start(MemcachedBackupSe ssionManager.java:
    636)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4476)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
    25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.ClassCastException: class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    at java.lang.Class.asSubclass(Class.java:3018)
    at
    de.javakaffee.web.msm.MemcachedSessionService.loadTranscoderFactoryClass(Me mcachedSessionService.java:
    529)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderFactory(Memca chedSessionService.java:
    514)
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache dSessionService.java:
    455)
    ... 27 more
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [] startup failed due to previous errors
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    shutdown
    INFO: Stopping services.
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Exception during cleanup after start failed
    java.lang.NullPointerException
    at
    de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionServ ice.java:
    380)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSes sionManager.java:
    669)
    at
    org.apache.catalina.core.StandardContext.stop(StandardContext.java:
    4611)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4512)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
    25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Mar 25, 2012 1:46:38 PM org.apache.tomcat.util.modeler.Registry
    registerComponent
    SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//
    localhost/,J2EEApplication=none,J2EEServer=none
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Sharepoint Document Workspace Servlet] has not been
    started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Clean Up Servlet] has not been started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Friendly URL Servlet - Private User] has not been
    started
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/].[Combo
    ...

    read more »
  • Wolfateh at Mar 26, 2012 at 11:27 am
    thanks for your quick replay

    i add in the lib these jars "memcached-2.6.jar,memcached-session-
    manager-1.6.1.jar ,memcached-session-manager-
    tc6-1.6.1.jar ,spymemcached-2.8.1.jar"
    ans in my WEB-INF/lib these jar list as in the articular
    "asm-3.2.jar,kryo-1.04.jar ,kryo-serializers-0.9.jar,minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar,reflectasm-1.01.jar"

    PS. i add the following lines to "bin/setenv.sh" >> CATALINA_OPTS="-
    Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.SunLogger"

    and add this also to "conf/logging.properties" >>

    key:org.apache.catalina.tribes.MESSAGES
    org.apache.catalina.ha.session.ClusterSessionListener.level = SEVERE
    org.apache.catalina.ha.session.ClusterSessionListener.handlers =
    2localhost.org.apache.juli.FileHandler


    # A handler's log level threshold can be set using SEVERE, WARNING,
    INFO, CONFIG, FINE, FINER, FINEST or ALL
    net.spy.memcached.level = WARNING
    # To make only the MemcachedConnection less verbose:
    #net.spy.memcached.MemcachedConnection.level = WARNING
    de.javakaffee.web.msm.level=FINE




    the things now little better, session created but i can't login to
    tomcat
    this my catalina.out log

    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
       delegate: false
       repositories:
         /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d

    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService finished initialization, sticky false,
    operation timeout 1000, with node ids [n1, n2] and failover node ids
    []
    Starting Liferay Portal Community Edition 6.0.5 CE (Bunyan / Build
    6005 / August 16, 2010)
    10:06:59,384 INFO [BaseDB:396] Database supports case sensitive
    queries
    10:07:01,018 INFO [PluginPackageUtil:1109] Reloading repositories
    10:07:01,730 INFO [HotDeployUtil:69] Initializing hot deploy manager
    440851213
    10:07:01,789 INFO [AutoDeployDir:105] Auto deploy scanner started
    for /home/server/fateh/liferay-portal-6.0.5/deploy
    Mar 26, 2012 10:07:02 AM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory default-site-templates-hook
    10:07:02,217 INFO [HookHotDeployListener:394] Registering hook for
    default-site-templates-hook
    Loading file:/home/server/fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    webapps/default-site-templates-hook/WEB-INF/classes/portal.properties
    10:07:02,290 INFO [HookHotDeployListener:649] Hook for default-site-
    templates-hook is available for use
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
       delegate: false
       repositories:
         /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d

    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    INFO: Could not load transcoderfactory class with classloader
    WebappClassLoader
       delegate: false
       repositories:
         /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d
    , trying org.apache.catalina.loader.StandardClassLoader@77d80e6d
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.StandardContext
    start
    SEVERE: Error manager.start()
    java.lang.RuntimeException: Could not create transcoder factory.
      at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(MemcachedSessionService.java:
    457)
      at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderService(MemcachedSessionService.java:
    449)
      at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:
    425)
      at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:
    127)
      at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.start(MemcachedBackupSessionManager.java:
    636)
      at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4476)
      at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
      at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
      at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:
    964)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    502)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
      at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
      at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
      at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    57)
      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.ClassNotFoundException:
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
      at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:264)
      at
    de.javakaffee.web.msm.MemcachedSessionService.loadTranscoderFactoryClass(MemcachedSessionService.java:
    532)
      at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderFactory(MemcachedSessionService.java:
    514)
      at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(MemcachedSessionService.java:
    455)
      ... 27 more
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.StandardContext
    start
    SEVERE: Context [/default-site-templates-hook] startup failed due to
    previous errors
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    shutdown
    INFO: Stopping services.
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.StandardContext
    start
    SEVERE: Exception during cleanup after start failed
    java.lang.NullPointerException
      at
    de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionService.java:
    380)
      at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSessionManager.java:
    669)
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:
    4611)
      at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4512)
      at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
      at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
      at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:
    964)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    502)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
      at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
      at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
      at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    57)
      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Mar 26, 2012 10:07:02 AM org.apache.tomcat.util.modeler.Registry
    registerComponent
    SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//
    localhost/default-site-templates-
    hook,J2EEApplication=none,J2EEServer=none
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/default-site-templates-hook].[jsp] has not been started
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/default-site-templates-hook].[default] has not been
    started
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.ContainerBase
    addChildInternal
    SEVERE: ContainerBase.addChild: start:
    LifecycleException: Manager has not yet been started
      at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSessionManager.java:
    651)
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:
    4611)
      at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4540)
      at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
      at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
      at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:
    964)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    502)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
      at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
      at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
      at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    57)
      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Mar 26, 2012 10:07:02 AM org.apache.catalina.startup.HostConfig
    deployDirectory
    SEVERE: Error deploying web application directory default-site-
    templates-hook
    java.lang.IllegalStateException: ContainerBase.addChild: start:
    LifecycleException: Manager has not yet been started
      at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    795)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
      at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
      at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:
    964)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    502)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
      at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
      at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
      at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    57)
      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Mar 26, 2012 10:07:02 AM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory sevencogs-theme
    10:07:02,425 INFO [ThemeHotDeployListener:78] Registering themes for
    sevencogs-theme
    10:07:02,472 INFO [ThemeHotDeployListener:89] 1 theme for sevencogs-
    theme is available for use
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass


    ...................................
    ...................................
    ...................................
    ...................................
    ...................................
    ...................................
    ...................................


    <<<<<<<in the end of the log i get this >>>>>>

      Mar 26, 2012 10:07:23 AM org.apache.coyote.http11.Http11Protocol
    start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Mar 26, 2012 10:07:23 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Mar 26, 2012 10:07:23 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/18 config=null
    Mar 26, 2012 10:07:23 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 26, 2012 10:07:23 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 41269 ms
    Mar 26, 2012 10:07:23 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id 0166F8C0B8E322F1DE4CACB7A05967C6
    Mar 26, 2012 10:10:17 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 26, 2012 10:10:17 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id 0EE12374BEE224222382F4B6E701D080
    Mar 26, 2012 10:10:17 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null


    On Mar 26, 11:36 am, Martin Grotzke wrote:
    Hi,

    you should remove
    memcached-session-manager-1.6.1.jar
    memcached-session-manager-tc6-1.6.1.jar
    spymemcached-2.8.1.jar
    memcached-2.6.jar

    from WEB-INF/lib, they caused the ClassCastException.

    You should also have
    msm-kryo-serializers-1.6.1.jar
    in WEB-INF/lib, probably it's already there and was just missing in the
    listing of jars.

    Cheers,
    Martin

    On 03/26/2012 09:00 AM, wolfateh wrote:






    the lib folder contained "memcached-session-manager-1.6.1.jar ,
    memcached-session-manager-tc6-1.6.1.jar , spymemcached-2.7.3.jar"
    and WEB-INF/lib contained "kryo-1.03.jar ,kryo-
    serializers-0.8.jar ,memcached-2.6.jar,memcached-session-
    manager-1.6.1.jar ,memcached-session-manager-tc6-1.6.1.jar,
    minlog-1.2.jar ,reflectasm-0.9.jar ,spymemcached-2.8.1.jar,"
    do i need any memcached service should be running ?
    On Mar 25, 5:35 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    Can you post the contents of tomcats lib dir and WEB-INF/lib?
    Cheers,
    Martin
    Am 25.03.2012 16:28 schrieb "wolfateh" <wolfa...@gmail.com>:
    hi all
    i use two tomcat-6.0.26 including liferay portal  in clustered with
    hardwear F5 load balancer non-sticky i follow the steps in this wiki
    http://code.google.com/p/memcached-session-manager/wiki/SetupAndConfi...
    for session replication ??
    i install the required jars and i edit my context.xml as the
    following
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:192.168.1.198:8080,n2:192.168.1.158:8080"
    sticky="false"
    sessionBackupAsync="false"
    lockingMode="uriPattern:/path1|/path2"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
    transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscode rFactory"
    />
    when i run my server i got this log Error
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.AprLifecycleListener
    init
    INFO: The APR based Apache Tomcat Native library which allows optimal
    performance in production environments was not found on the
    java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/
    client:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/
    java-6-sun-1.6.0.26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/
    usr/lib
    Mar 25, 2012 1:46:02 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 524 ms
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
    Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.HostConfig
    deployDescriptor
    INFO: Deploying configuration descriptor ROOT.xml
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@12dacd1
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error manager.start()
    java.lang.RuntimeException: Could not create transcoder factory.
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache dSessionService.java:
    457)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderService(Memca chedSessionService.java:
    449)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessio nService.java:
    425)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(Memcached BackupSessionManager.java:
    127)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.start(MemcachedBackupSe ssionManager.java:
    636)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4476)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
    25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.ClassCastException: class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    at java.lang.Class.asSubclass(Class.java:3018)
    at
    de.javakaffee.web.msm.MemcachedSessionService.loadTranscoderFactoryClass(Me mcachedSessionService.java:
    529)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderFactory(Memca chedSessionService.java:
    514)
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache dSessionService.java:
    455)
    ... 27 more
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [] startup failed due to previous errors
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    shutdown
    INFO: Stopping services.
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Exception during cleanup after start failed
    java.lang.NullPointerException
    at
    de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionServ ice.java:
    380)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSes sionManager.java:
    669)
    at
    org.apache.catalina.core.StandardContext.stop(StandardContext.java:
    4611)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4512)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    ...

    read more »

    signature.asc
    < 1KViewDownload
  • Martin Grotzke at Mar 26, 2012 at 2:37 pm
    AFAICS there are several webapps started, and for some the
    initialization is fine, for others not.

    Can you configure msm only for the webapp you're interested in (e.g. by
    placing an appropriate context.xml in META-INF)?

    Is it possible that I can reproduce your issue, can you tell me what I
    would have to do for this (starting from "download liferay version xyz",
    "place this war file there" etc.)?

    Cheers,
    Martin

    On 03/26/2012 01:27 PM, wolfateh wrote:
    thanks for your quick replay

    i add in the lib these jars "memcached-2.6.jar,memcached-session-
    manager-1.6.1.jar ,memcached-session-manager-
    tc6-1.6.1.jar ,spymemcached-2.8.1.jar"
    ans in my WEB-INF/lib these jar list as in the articular
    "asm-3.2.jar,kryo-1.04.jar ,kryo-serializers-0.9.jar,minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar,reflectasm-1.01.jar"

    PS. i add the following lines to "bin/setenv.sh" >> CATALINA_OPTS="-
    Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.SunLogger"

    and add this also to "conf/logging.properties" >>

    key:org.apache.catalina.tribes.MESSAGES
    org.apache.catalina.ha.session.ClusterSessionListener.level = SEVERE
    org.apache.catalina.ha.session.ClusterSessionListener.handlers =
    2localhost.org.apache.juli.FileHandler


    # A handler's log level threshold can be set using SEVERE, WARNING,
    INFO, CONFIG, FINE, FINER, FINEST or ALL
    net.spy.memcached.level = WARNING
    # To make only the MemcachedConnection less verbose:
    #net.spy.memcached.MemcachedConnection.level = WARNING
    de.javakaffee.web.msm.level=FINE




    the things now little better, session created but i can't login to
    tomcat
    this my catalina.out log

    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d

    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService finished initialization, sticky false,
    operation timeout 1000, with node ids [n1, n2] and failover node ids
    []
    Starting Liferay Portal Community Edition 6.0.5 CE (Bunyan / Build
    6005 / August 16, 2010)
    10:06:59,384 INFO [BaseDB:396] Database supports case sensitive
    queries
    10:07:01,018 INFO [PluginPackageUtil:1109] Reloading repositories
    10:07:01,730 INFO [HotDeployUtil:69] Initializing hot deploy manager
    440851213
    10:07:01,789 INFO [AutoDeployDir:105] Auto deploy scanner started
    for /home/server/fateh/liferay-portal-6.0.5/deploy
    Mar 26, 2012 10:07:02 AM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory default-site-templates-hook
    10:07:02,217 INFO [HookHotDeployListener:394] Registering hook for
    default-site-templates-hook
    Loading file:/home/server/fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    webapps/default-site-templates-hook/WEB-INF/classes/portal.properties
    10:07:02,290 INFO [HookHotDeployListener:649] Hook for default-site-
    templates-hook is available for use
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d

    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    INFO: Could not load transcoderfactory class with classloader
    WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d
    , trying org.apache.catalina.loader.StandardClassLoader@77d80e6d
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.StandardContext
    start
    SEVERE: Error manager.start()
    java.lang.RuntimeException: Could not create transcoder factory.
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(MemcachedSessionService.java:
    457)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderService(MemcachedSessionService.java:
    449)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:
    425)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:
    127)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.start(MemcachedBackupSessionManager.java:
    636)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4476)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
    at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:
    964)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.ClassNotFoundException:
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at
    de.javakaffee.web.msm.MemcachedSessionService.loadTranscoderFactoryClass(MemcachedSessionService.java:
    532)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderFactory(MemcachedSessionService.java:
    514)
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(MemcachedSessionService.java:
    455)
    ... 27 more
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.StandardContext
    start
    SEVERE: Context [/default-site-templates-hook] startup failed due to
    previous errors
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    shutdown
    INFO: Stopping services.
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.StandardContext
    start
    SEVERE: Exception during cleanup after start failed
    java.lang.NullPointerException
    at
    de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionService.java:
    380)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSessionManager.java:
    669)
    at org.apache.catalina.core.StandardContext.stop(StandardContext.java:
    4611)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4512)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
    at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:
    964)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Mar 26, 2012 10:07:02 AM org.apache.tomcat.util.modeler.Registry
    registerComponent
    SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//
    localhost/default-site-templates-
    hook,J2EEApplication=none,J2EEServer=none
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/default-site-templates-hook].[jsp] has not been started
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.ContainerBase stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].
    [localhost].[/default-site-templates-hook].[default] has not been
    started
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.ContainerBase
    addChildInternal
    SEVERE: ContainerBase.addChild: start:
    LifecycleException: Manager has not yet been started
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSessionManager.java:
    651)
    at org.apache.catalina.core.StandardContext.stop(StandardContext.java:
    4611)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4540)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
    at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:
    964)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Mar 26, 2012 10:07:02 AM org.apache.catalina.startup.HostConfig
    deployDirectory
    SEVERE: Error deploying web application directory default-site-
    templates-hook
    java.lang.IllegalStateException: ContainerBase.addChild: start:
    LifecycleException: Manager has not yet been started
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    795)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
    at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:
    964)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
    43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Mar 26, 2012 10:07:02 AM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory sevencogs-theme
    10:07:02,425 INFO [ThemeHotDeployListener:78] Registering themes for
    sevencogs-theme
    10:07:02,472 INFO [ThemeHotDeployListener:89] 1 theme for sevencogs-
    theme is available for use
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass


    ...................................
    ...................................
    ...................................
    ...................................
    ...................................
    ...................................
    ...................................


    <<<<<<<in the end of the log i get this >>>>>>

    Mar 26, 2012 10:07:23 AM org.apache.coyote.http11.Http11Protocol
    start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Mar 26, 2012 10:07:23 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Mar 26, 2012 10:07:23 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/18 config=null
    Mar 26, 2012 10:07:23 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 26, 2012 10:07:23 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 41269 ms
    Mar 26, 2012 10:07:23 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id 0166F8C0B8E322F1DE4CACB7A05967C6
    Mar 26, 2012 10:10:17 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 26, 2012 10:10:17 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id 0EE12374BEE224222382F4B6E701D080
    Mar 26, 2012 10:10:17 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null


    On Mar 26, 11:36 am, Martin Grotzke wrote:
    Hi,

    you should remove
    memcached-session-manager-1.6.1.jar
    memcached-session-manager-tc6-1.6.1.jar
    spymemcached-2.8.1.jar
    memcached-2.6.jar

    from WEB-INF/lib, they caused the ClassCastException.

    You should also have
    msm-kryo-serializers-1.6.1.jar
    in WEB-INF/lib, probably it's already there and was just missing in the
    listing of jars.

    Cheers,
    Martin

    On 03/26/2012 09:00 AM, wolfateh wrote:






    the lib folder contained "memcached-session-manager-1.6.1.jar ,
    memcached-session-manager-tc6-1.6.1.jar , spymemcached-2.7.3.jar"
    and WEB-INF/lib contained "kryo-1.03.jar ,kryo-
    serializers-0.8.jar ,memcached-2.6.jar,memcached-session-
    manager-1.6.1.jar ,memcached-session-manager-tc6-1.6.1.jar,
    minlog-1.2.jar ,reflectasm-0.9.jar ,spymemcached-2.8.1.jar,"
    do i need any memcached service should be running ?
    On Mar 25, 5:35 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    Can you post the contents of tomcats lib dir and WEB-INF/lib?
    Cheers,
    Martin
    Am 25.03.2012 16:28 schrieb "wolfateh" <wolfa...@gmail.com>:
    hi all
    i use two tomcat-6.0.26 including liferay portal in clustered with
    hardwear F5 load balancer non-sticky i follow the steps in this wiki
    http://code.google.com/p/memcached-session-manager/wiki/SetupAndConfi...
    for session replication ??
    i install the required jars and i edit my context.xml as the
    following
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:192.168.1.198:8080,n2:192.168.1.158:8080"
    sticky="false"
    sessionBackupAsync="false"
    lockingMode="uriPattern:/path1|/path2"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
    transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscode rFactory"
    />
    when i run my server i got this log Error
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.AprLifecycleListener
    init
    INFO: The APR based Apache Tomcat Native library which allows optimal
    performance in production environments was not found on the
    java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/
    client:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/
    java-6-sun-1.6.0.26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/
    usr/lib
    Mar 25, 2012 1:46:02 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 524 ms
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Mar 25, 2012 1:46:02 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
    Mar 25, 2012 1:46:02 PM org.apache.catalina.startup.HostConfig
    deployDescriptor
    INFO: Deploying configuration descriptor ROOT.xml
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@12dacd1
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error manager.start()
    java.lang.RuntimeException: Could not create transcoder factory.
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache dSessionService.java:
    457)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderService(Memca chedSessionService.java:
    449)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessio nService.java:
    425)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(Memcached BackupSessionManager.java:
    127)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.start(MemcachedBackupSe ssionManager.java:
    636)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4476)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
    25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.ClassCastException: class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    at java.lang.Class.asSubclass(Class.java:3018)
    at
    de.javakaffee.web.msm.MemcachedSessionService.loadTranscoderFactoryClass(Me mcachedSessionService.java:
    529)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderFactory(Memca chedSessionService.java:
    514)
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache dSessionService.java:
    455)
    ... 27 more
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [] startup failed due to previous errors
    Mar 25, 2012 1:46:38 PM de.javakaffee.web.msm.MemcachedSessionService
    shutdown
    INFO: Stopping services.
    Mar 25, 2012 1:46:38 PM org.apache.catalina.core.StandardContext start
    SEVERE: Exception during cleanup after start failed
    java.lang.NullPointerException
    at
    de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionServ ice.java:
    380)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSes sionManager.java:
    669)
    at
    org.apache.catalina.core.StandardContext.stop(StandardContext.java:
    4611)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4512)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
    637)
    at
    org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
    563)
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    498)
    at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    ...

    read more »

    signature.asc
    < 1KViewDownload
  • Wolfateh at Mar 26, 2012 at 2:51 pm
    Hi Martin
    first i have only one webapps and the other what you read in the log
    its portlets start registered in the running tomcat container
    you can download liferay and tested from this link

    http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.5/liferay-portal-tomcat-6.0.5.zip/download

    thanks alto for ur concern
    Cheers
    On Mar 26, 5:37 pm, Martin Grotzke wrote:
    AFAICS there are several webapps started, and for some the
    initialization is fine, for others not.

    Can you configure msm only for the webapp you're interested in (e.g. by
    placing an appropriate context.xml in META-INF)?

    Is it possible that I can reproduce your issue, can you tell me what I
    would have to do for this (starting from "download liferay version xyz",
    "place this war file there" etc.)?

    Cheers,
    Martin

    On 03/26/2012 01:27 PM, wolfateh wrote:






    thanks for your quick replay
    i add in the lib these jars "memcached-2.6.jar,memcached-session-
    manager-1.6.1.jar ,memcached-session-manager-
    tc6-1.6.1.jar ,spymemcached-2.8.1.jar"
    ans in my WEB-INF/lib these jar list as in the articular
    "asm-3.2.jar,kryo-1.04.jar ,kryo-serializers-0.9.jar,minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar,reflectasm-1.01.jar"
    PS. i add the following lines to "bin/setenv.sh" >>  CATALINA_OPTS="-
    Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.SunLogger"
    and add this also to  "conf/logging.properties" >>
    key:org.apache.catalina.tribes.MESSAGES
    org.apache.catalina.ha.session.ClusterSessionListener.level = SEVERE
    org.apache.catalina.ha.session.ClusterSessionListener.handlers =
    2localhost.org.apache.juli.FileHandler
    # A handler's log level threshold can be set using SEVERE, WARNING,
    INFO, CONFIG, FINE, FINER, FINEST or ALL
    net.spy.memcached.level = WARNING
    # To make only the MemcachedConnection less verbose:
    #net.spy.memcached.MemcachedConnection.level = WARNING
    de.javakaffee.web.msm.level=FINE
    the things now little better, session created but i can't login to
    tomcat
    this my catalina.out log
    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d
    Mar 26, 2012 10:06:58 AM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService finished initialization, sticky false,
    operation timeout 1000, with node ids [n1, n2] and failover node ids
    []
    Starting Liferay Portal Community Edition 6.0.5 CE (Bunyan / Build
    6005 / August 16, 2010)
    10:06:59,384 INFO  [BaseDB:396] Database supports case sensitive
    queries
    10:07:01,018 INFO  [PluginPackageUtil:1109] Reloading repositories
    10:07:01,730 INFO  [HotDeployUtil:69] Initializing hot deploy manager
    440851213
    10:07:01,789 INFO  [AutoDeployDir:105] Auto deploy scanner started
    for /home/server/fateh/liferay-portal-6.0.5/deploy
    Mar 26, 2012 10:07:02 AM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory default-site-templates-hook
    10:07:02,217 INFO  [HookHotDeployListener:394] Registering hook for
    default-site-templates-hook
    Loading file:/home/server/fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    webapps/default-site-templates-hook/WEB-INF/classes/portal.properties
    10:07:02,290 INFO  [HookHotDeployListener:649] Hook for default-site-
    templates-hook is available for use
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to URI_PATTERN with pattern /path1|/path2
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    INFO: Could not load transcoderfactory class with classloader
    WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d
    , trying org.apache.catalina.loader.StandardClassLoader@77d80e6d
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.StandardContext
    start
    SEVERE: Error manager.start()
    java.lang.RuntimeException: Could not create transcoder factory.
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache dSessionService.java:
    457)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderService(Memca chedSessionService.java:
    449)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessio nService.java:
    425)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(Memcached BackupSessionManager.java:
    127)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.start(MemcachedBackupSe ssionManager.java:
    636)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4476)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
    at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:
    964)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
    502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
    321)
    at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo rt.java:
    119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
    1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
    443)
    at
    org.apache.catalina.core.StandardService.start(StandardService.java:
    519)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:
    710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
    57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
    43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.ClassNotFoundException:
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at
    de.javakaffee.web.msm.MemcachedSessionService.loadTranscoderFactoryClass(Me mcachedSessionService.java:
    532)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderFactory(Memca chedSessionService.java:
    514)
    at
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache dSessionService.java:
    455)
    ... 27 more
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.StandardContext
    start
    SEVERE: Context [/default-site-templates-hook] startup failed due to
    previous errors
    Mar 26, 2012 10:07:02 AM de.javakaffee.web.msm.MemcachedSessionService
    shutdown
    INFO: Stopping services.
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.StandardContext
    start
    SEVERE: Exception during cleanup after start failed
    java.lang.NullPointerException
    at
    de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionServ ice.java:
    380)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.stop(MemcachedBackupSes sionManager.java:
    669)
    at org.apache.catalina.core.StandardContext.stop(StandardContext.java:
    4611)
    at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:
    4512)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
    791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
    771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
    546)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
    at
    org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:
    964)
    at
    ...

    read more »

    signature.asc
    < 1KViewDownload
  • Martin Grotzke at Mar 26, 2012 at 3:02 pm
    Please provide a detailed explanation which steps are needed to reproduce
    the issue. Downloading liferay is probably not enough ;-)

    Cheers,
    Martin

    Am 26.03.2012 16:51 schrieb "wolfateh" <wolfateh@gmail.com>:
    Hi Martin
    first i have only one webapps and the other what you read in the log
    its portlets start registered in the running tomcat container
    you can download liferay and tested from this link

    http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.5/liferay-portal-tomcat-6.0.5.zip/download

    thanks alto for ur concern
    Cheers
    On Mar 26, 5:37 pm, Martin Grotzke wrote:

    AFAICS there are several webapps started, and for some the
    initialization is fine, for others no...
    > >
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache
    dSessionService.java...
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
    at
    ...
    > >
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo
    rt.java:
    119) ...
    57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
    l.java:
    43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.sta...
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderFactory(Memca
    chedSessio...
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.StandardContext
    start
    SEVERE: Context ...
    > >
    de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionServ
    ice.java:
    380) ...
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
    at
    ...
    ...

    read more »

    signature.asc
    < 1KViewDownload
  • Wolfateh at Mar 27, 2012 at 7:12 am
    good morning
    i put the details in my first email
    any way here is the steps
    in folder "/liferay-portal-6.0.5/tomcat-6.0.26/conf/context.xml" i add
    this

    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
         memcachedNodes="n1:192.168.1.198:11211,n2:192.168.1.158:11211"
         sticky="false"
         sessionBackupAsync="false"
         lockingMode="uriPattern:/path1|/path2"
      sessionBackupTimeout="100"
         requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

    transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
         />

    i copy jars to /liferay-portal-6.0.5/tomcat-6.0.26/lib
    memcached-2.6.jar
    memcached-session-manager-1.6.1.jar
    memcached-session-manager-tc6-1.6.1.jar
    spymemcached-2.8.1.jar

    also i copy jars to /liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/
    WEB-INF/lib
    asm-3.2.jar
    jrebel.jar
    kryo-1.04.jar
    kryo-serializers-0.9.jar
    minlog-1.2.jar
    msm-kryo-serializer-1.6.1.jar
    reflectasm-1.01.jar

    i add this line to /liferay-portal-6.0.5/tomcat-6.0.26/bin/setenv.sh
      CATALINA_OPTS="-
    Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.SunLogger"

    and i add this line to /liferay-portal-6.0.5/tomcat-6.0.26/conf/
    logging.properties

    key:org.apache.catalina.tribes.MESSAGES
    org.apache.catalina.ha.session.ClusterSessionListener.level = SEVERE
    org.apache.catalina.ha.session.ClusterSessionListener.handlers =
    2localhost.org.apache.juli.FileHandler
    net.spy.memcached.level = WARNING
    de.javakaffee.web.msm.level=FINE


    this all what i did exactly
    i hope it will help

    On Mar 26, 6:02 pm, Martin Grotzke wrote:
    Please provide a detailed explanation which steps are needed to reproduce
    the issue. Downloading liferay is probably not enough ;-)

    Cheers,
    Martin

    Am 26.03.2012 16:51 schrieb "wolfateh" <wolfa...@gmail.com>:
    Hi Martin
    first i have only one webapps  and the other what you read in the log
    its portlets start registered in the running tomcat container
    you can download liferay and tested from this link

    http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.5/...

    thanks alto for ur concern
    Cheers
    On Mar 26, 5:37 pm, Martin Grotzke wrote:

    AFAICS there are several webapps started, and for some the
    initialization is fine, for others no...
    de.javakaffee.web.msm.MemcachedSessionService.getTranscoderFactory(Memcache
    dSessionService.java...
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
    at
    ...
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo
    rt.java:> > 119)
    ...
    57)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
    l.java:
    43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.sta...
    at
    de.javakaffee.web.msm.MemcachedSessionService.createTranscoderFactory(Memca
    chedSessio...
    Mar 26, 2012 10:07:02 AM org.apache.catalina.core.StandardContext
    start
    SEVERE: Context ...
    de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionServ
    ice.java:






    380) ...
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
    1041)
    at
    ...
    ...
    read more »
    signature.asc
    < 1KViewDownload
  • Martin Grotzke at Mar 27, 2012 at 3:37 pm
    I just followed your description and could reproduce the issue. To resolve
    it I copied the modified context.xml to webapps/ROOT/META-INF and reverted
    conf/context.xml. This is needed as only the ROOT context has the needed
    jars.
    With this I could successfully run tomcat/bin/catalina.sh and could login
    as some of the sample users.
    Though, I didn't see any session being written to memcached, so the
    question to me is where liferay actually does anything with sessions.

    Cheers,
    Martin

    Am 27.03.2012 09:12 schrieb "wolfateh" <wolfateh@gmail.com>:
    good morning
    i put the details in my first email
    any way here is the steps
    in folder "/liferay-portal-6.0.5/tomcat-6.0.26/conf/context.xml" i add
    this

    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
        memcachedNodes="n1:192.168.1.198:11211,n2:192.168.1.158:11211"

    sticky="false"
    sessionBackupAsync="false"
    lockingMode="uriPattern:/path1|/path2"
            sessionBackupTimeout="100"

    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

    transcoderFactoryClass="de.javakaffee....
    i copy jars to /liferay-portal-6.0.5/tomcat-6.0.26/lib
    memcached-2.6.jar
    memcached-session-manager-1.6.1.jar
    memcached-session-manager-tc6-1.6.1.jar
    spymemcached-2.8.1.jar

    also i copy jars to /liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/
    WEB-INF/lib
    asm-3.2.jar
    jrebel.jar
    kryo-1.04.jar
    kryo-serializers-0.9.jar
    minlog-1.2.jar
    msm-kryo-serializer-1.6.1.jar
    reflectasm-1.01.jar

    i add this line to /liferay-portal-6.0.5/tomcat-6.0.26/bin/setenv.sh
      CATALINA_OPTS="-
    Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.SunLogger"

    and i add this line to /liferay-portal-6.0.5/tomcat-6.0.26/conf/
    logging.properties


    key:org.apache.catalina.tribes.MESSAGES
    org.apache.catalina.ha.session.ClusterSessionListener.level...
    net.spy.memcached.level = WARNING
    de.javakaffee.web.msm.level=FINE


    this all what i did exactly
    i hope it will help

    On Mar 26, 6:02 pm, Martin Grotzke wrote:

    Please provide a detailed explanation which steps are needed to reproduce
    the issue. Downloading...
    Am 26.03.2012 16:51 schrieb "wolfateh" <wolfa...@gmail.com>:
    Hi Martin
    first i have only one webapps and the other what you read in the log
    its portlets s...
    http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.5/...
    thanks alto for ur concern
    Cheers

    On Mar 26, 5:37 pm, Martin Grotzke <martin.grot...@googl...
  • Wolfateh at Mar 28, 2012 at 10:43 am
    could you provide me with more details and send me the code /ROOT/
    META-INF/context.xm & conf/context.xml and the jar list
    because when i try to create folder /ROOT/META-INF/context.xml and i
    map it to the conf/context.xml
    but Memcached not started

    there is several ways to store the session and its depend on tomcat
    methods to store the session




    On Mar 27, 6:37 pm, Martin Grotzke wrote:
    I just followed your description and could reproduce the issue. To resolve
    it I copied the modified context.xml to webapps/ROOT/META-INF and reverted
    conf/context.xml. This is needed as only the ROOT context has the needed
    jars.
    With this I could successfully run tomcat/bin/catalina.sh and could login
    as some of the sample users.
    Though, I didn't see any session being written to memcached, so the
    question to me is where liferay actually does anything with sessions.

    Cheers,
    Martin

    Am 27.03.2012 09:12 schrieb "wolfateh" <wolfa...@gmail.com>:
    good morning
    i put the details in my first email
    any way here is the steps
    in folder "/liferay-portal-6.0.5/tomcat-6.0.26/conf/context.xml" i add
    this

    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:192.168.1.198:11211,n2:192.168.1.158:11211"

    sticky="false"
    sessionBackupAsync="false"
    lockingMode="uriPattern:/path1|/path2"
    sessionBackupTimeout="100"

    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

    transcoderFactoryClass="de.javakaffee....
    i copy jars to /liferay-portal-6.0.5/tomcat-6.0.26/lib
    memcached-2.6.jar
    memcached-session-manager-1.6.1.jar
    memcached-session-manager-tc6-1.6.1.jar
    spymemcached-2.8.1.jar

    also i copy jars to /liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/
    WEB-INF/lib
    asm-3.2.jar
    jrebel.jar
    kryo-1.04.jar
    kryo-serializers-0.9.jar
    minlog-1.2.jar
    msm-kryo-serializer-1.6.1.jar
    reflectasm-1.01.jar

    i add this line to /liferay-portal-6.0.5/tomcat-6.0.26/bin/setenv.sh
    CATALINA_OPTS="-
    Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.SunLogger"

    and i add this line to  /liferay-portal-6.0.5/tomcat-6.0.26/conf/
    logging.properties

    key:org.apache.catalina.tribes.MESSAGES
    org.apache.catalina.ha.session.ClusterSessionListener.level...
    net.spy.memcached.level = WARNING
    de.javakaffee.web.msm.level=FINE

    this all what i did exactly
    i hope it will help

    On Mar 26, 6:02 pm, Martin Grotzke wrote:






    Please provide a detailed explanation which steps are needed to reproduce
    the issue. Downloading...
    Am 26.03.2012 16:51 schrieb "wolfateh" <wolfa...@gmail.com>:
    Hi Martin
    first i have only one webapps  and the other what you read in the log
    its portlets s...
    http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.5/...
    thanks alto for ur concern
    Cheers
    On Mar 26, 5:37 pm, Martin Grotzke <martin.grot...@googl...
  • Martin Grotzke at Mar 28, 2012 at 12:08 pm
    Hi,

    I just noticed that msm was not loaded because there was already the
    file conf/Catalina/localhost/ROOT.xml with "old" default values (without
    msm). Therefore I copied the webapps/ROOT/META-INF/context.xml to
    conf/Catalina/localhost/ROOT.xml.

    When testing again I noticed that with liferay there seem to be minor
    issues with the locking strategies "uri" and "auto" (I just entered
    http://code.google.com/p/memcached-session-manager/issues/detail?id=127
    for this). So either use sticky sessions or non-sticky sessions + "none"
    or "all" for locking strategy.
    Btw, I saw that liferay does some polling on sessions or s.th. that
    loads the session often from memcached, therefore I'd recommend using
    sticky sessions (preferred) or non-sticky and lockingMode "none".

    Here are the files you asked for (removed xml comments to shorten it).

    $ cat conf/context.xml
    <?xml version='1.0' encoding='utf-8'?>
    <Context>
       <WatchedResource>WEB-INF/web.xml</WatchedResource>
    </Context>

    $ cat conf/Catalina/localhost/ROOT.xml
    <?xml version='1.0' encoding='utf-8'?>
    <Context path="" crossContext="true">
       <WatchedResource>WEB-INF/web.xml</WatchedResource>
       <Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
         memcachedNodes="n1:localhost:11211,n2:localhost:11212"
         sticky="false"
         sessionBackupAsync="false"
         lockingMode="none"
         sessionBackupTimeout="100"
         requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

    transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
         />
    </Context>

    $ ll lib/ | grep memcached
    -rw-rw-r-- 1 magro magro 127688 Mar 27 16:45
    memcached-session-manager-1.6.1.jar
    -rw-rw-r-- 1 magro magro 11473 Mar 27 16:46
    memcached-session-manager-tc6-1.6.1.jar
    -rw-rw-r-- 1 magro magro 407912 Mar 27 16:47 spymemcached-2.7.3.jar

    $ ll webapps/ROOT/WEB-INF/lib/ | grep "kryo\|asm-3\|reflect\|minlog"
    -rw-rw-r-- 1 magro magro 43398 Mar 27 16:47 asm-3.2.jar
    -rw-rw-r-- 1 magro magro 98608 Mar 27 16:48 kryo-1.04.jar
    -rw-rw-r-- 1 magro magro 55998 Mar 27 16:48 kryo-serializers-0.8.jar
    -rw-rw-r-- 1 magro magro 3085 Mar 27 16:48 minlog-1.2.jar
    -rw-rw-r-- 1 magro magro 23490 Mar 27 16:49 msm-kryo-serializer-1.6.1.jar
    -rw-rw-r-- 1 magro magro 8135 Mar 27 16:49 reflectasm-1.01.jar


    Cheers,
    Martin

    On 03/28/2012 12:43 PM, wolfateh wrote:
    could you provide me with more details and send me the code /ROOT/
    META-INF/context.xm & conf/context.xml and the jar list
    because when i try to create folder /ROOT/META-INF/context.xml and i
    map it to the conf/context.xml
    but Memcached not started

    there is several ways to store the session and its depend on tomcat
    methods to store the session




    On Mar 27, 6:37 pm, Martin Grotzke wrote:
    I just followed your description and could reproduce the issue. To resolve
    it I copied the modified context.xml to webapps/ROOT/META-INF and reverted
    conf/context.xml. This is needed as only the ROOT context has the needed
    jars.
    With this I could successfully run tomcat/bin/catalina.sh and could login
    as some of the sample users.
    Though, I didn't see any session being written to memcached, so the
    question to me is where liferay actually does anything with sessions.

    Cheers,
    Martin

    Am 27.03.2012 09:12 schrieb "wolfateh" <wolfa...@gmail.com>:
    good morning
    i put the details in my first email
    any way here is the steps
    in folder "/liferay-portal-6.0.5/tomcat-6.0.26/conf/context.xml" i add
    this

    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:192.168.1.198:11211,n2:192.168.1.158:11211"

    sticky="false"
    sessionBackupAsync="false"
    lockingMode="uriPattern:/path1|/path2"
    sessionBackupTimeout="100"

    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

    transcoderFactoryClass="de.javakaffee....
    i copy jars to /liferay-portal-6.0.5/tomcat-6.0.26/lib
    memcached-2.6.jar
    memcached-session-manager-1.6.1.jar
    memcached-session-manager-tc6-1.6.1.jar
    spymemcached-2.8.1.jar

    also i copy jars to /liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/
    WEB-INF/lib
    asm-3.2.jar
    jrebel.jar
    kryo-1.04.jar
    kryo-serializers-0.9.jar
    minlog-1.2.jar
    msm-kryo-serializer-1.6.1.jar
    reflectasm-1.01.jar

    i add this line to /liferay-portal-6.0.5/tomcat-6.0.26/bin/setenv.sh
    CATALINA_OPTS="-
    Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.SunLogger"

    and i add this line to /liferay-portal-6.0.5/tomcat-6.0.26/conf/
    logging.properties

    key:org.apache.catalina.tribes.MESSAGES
    org.apache.catalina.ha.session.ClusterSessionListener.level...
    net.spy.memcached.level = WARNING
    de.javakaffee.web.msm.level=FINE

    this all what i did exactly
    i hope it will help

    On Mar 26, 6:02 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:






    Please provide a detailed explanation which steps are needed to reproduce
    the issue. Downloading...
    Am 26.03.2012 16:51 schrieb "wolfateh" <wolfa...@gmail.com>:
    Hi Martin
    first i have only one webapps and the other what you read in the log
    its portlets s...
    http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.5/...
    thanks alto for ur concern
    Cheers
    On Mar 26, 5:37 pm, Martin Grotzke <martin.grot...@googl...
  • Wolfateh at Mar 28, 2012 at 2:22 pm
    Hi Martin
    Follow the steps which you advice me to make it
    i add in the /tomcat-6.0.26/conf/Catalina/localhost/ROOT.xml this
    lines

    <Context path="" crossContext="true">


      <WatchedResource>WEB-INF/web.xml</WatchedResource>

    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
         memcachedNodes="n1:192.168.1.198:8080,n2:192.168.1.158:8080"
         sticky="false"
         sessionBackupAsync="false"
         lockingMode="none"
      sessionBackupTimeout="100"
         requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

    transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
         />
    </Context>


    #every thing went good but i got this FINE in my log could you tell
    me what is caused this

    INFO: Deploying configuration descriptor ROOT.xml
    Mar 28, 2012 2:02:13 PM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition n1:192.168.1.198:8080,n2:192.168.1.158:8080, failover
    nodes null)
    Mar 28, 2012 2:02:14 PM de.javakaffee.web.msm.MemcachedSessionService
    setLockingMode
    INFO: Setting lockingMode to NONE
    Mar 28, 2012 2:02:14 PM de.javakaffee.web.msm.MemcachedSessionService
    createTranscoderFactory
    INFO: Creating transcoder factory
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Mar 28, 2012 2:02:14 PM de.javakaffee.web.msm.MemcachedSessionService
    loadTranscoderFactoryClass
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
       delegate: false
       repositories:
         /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d
    Mar 28, 2012 2:02:14 PM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService finished initialization, sticky false,
    operation timeout 1000, with node ids [n1, n2] and failover node ids
    []
    Mar 28, 2012 2:02:18 PM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory default-site-templates-hook


    #After this the container star-up fine
    and the session created but i think the MemcachedSessionService could
    not retrieve or re-invoke back the sessionID
    you can see this in this portion of the log

    Mar 28, 2012 2:02:34 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Mar 28, 2012 2:02:34 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Mar 28, 2012 2:02:34 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/16 config=null
    Mar 28, 2012 2:02:34 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 28, 2012 2:02:34 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 37545 ms
    Mar 28, 2012 2:02:34 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id D3AC485DBD6734BEDBC5F3BDE4CFF339
    Mar 28, 2012 2:03:53 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 28, 2012 2:03:53 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id B4ECB8CFD44E88EA0FC6D47396FEAC28
    Mar 28, 2012 2:03:53 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 28, 2012 2:03:53 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id EF8E1BC49C1730AB3648208E4ACDECB2
    Mar 28, 2012 2:03:58 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 28, 2012 2:03:58 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id 0C66407C2E1133658E2D3D34AB75BB24
    Mar 28, 2012 2:03:58 PM
    de.javakaffee.web.msm.MemcachedBackupSessionManager remove
    FINE: remove invoked, removeFromMemcached: true, id:
    0C66407C2E1133658E2D3D34AB75BB24
    Mar 28, 2012 2:03:58 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 28, 2012 2:03:58 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id 78044B6153E4E0D8FEF21F61B04880A8
    Mar 28, 2012 2:03:58 PM de.javakaffee.web.msm.MemcachedSessionService
    backupSession
    FINE: No session found in session map for
    0C66407C2E1133658E2D3D34AB75BB24
    Mar 28, 2012 2:03:58 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 28, 2012 2:03:58 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id EDD3D3A96CEEFD7E138197995D391625
    Mar 28, 2012 2:03:58 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 28, 2012 2:03:58 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id 215D3E4E8947EA8FA92D6C0ED21C46ED
    Mar 28, 2012 2:04:01 PM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null


    #you could check this Senior by running the liferay

    /liferay-portal-6.0.5/tomcat-6.0.26/bin
    ./startup.sh

    #when liferay start-up you could log-in by

    http://192.168.1.158:8080

    userName:bruno@7cogs.com
    passWord:bruno

    and you could see the logs /liferay-portal-6.0.5/tomcat-6.0.26/logs/
    catalina.out OR catalina.2012-03-2*.log













    On Mar 28, 8:08 am, Martin Grotzke wrote:
    Hi,

    I just noticed that msm was not loaded because there was already the
    file conf/Catalina/localhost/ROOT.xml with "old" default values (without
    msm). Therefore I copied the webapps/ROOT/META-INF/context.xml to
    conf/Catalina/localhost/ROOT.xml.

    When testing again I noticed that with liferay there seem to be minor
    issues with the locking strategies "uri" and "auto" (I just enteredhttp://code.google.com/p/memcached-session-manager/issues/detail?id=127
    for this). So either use sticky sessions or non-sticky sessions + "none"
    or "all" for locking strategy.
    Btw, I saw that liferay does some polling on sessions or s.th. that
    loads the session often from memcached, therefore I'd recommend using
    sticky sessions (preferred) or non-sticky and lockingMode "none".

    Here are the files you asked for (removed xml comments to shorten it).

    $ cat conf/context.xml
    <?xml version='1.0' encoding='utf-8'?>
    <Context>
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    </Context>

    $ cat conf/Catalina/localhost/ROOT.xml
    <?xml version='1.0' encoding='utf-8'?>
    <Context path="" crossContext="true">
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:localhost:11211,n2:localhost:11212"
    sticky="false"
    sessionBackupAsync="false"
    lockingMode="none"
    sessionBackupTimeout="100"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

    transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscode rFactory"
    />
    </Context>

    $ ll lib/ | grep memcached
    -rw-rw-r-- 1 magro magro  127688 Mar 27 16:45
    memcached-session-manager-1.6.1.jar
    -rw-rw-r-- 1 magro magro   11473 Mar 27 16:46
    memcached-session-manager-tc6-1.6.1.jar
    -rw-rw-r-- 1 magro magro  407912 Mar 27 16:47 spymemcached-2.7.3.jar

    $ ll webapps/ROOT/WEB-INF/lib/ | grep "kryo\|asm-3\|reflect\|minlog"
    -rw-rw-r-- 1 magro magro    43398 Mar 27 16:47 asm-3.2.jar
    -rw-rw-r-- 1 magro magro    98608 Mar 27 16:48 kryo-1.04.jar
    -rw-rw-r-- 1 magro magro    55998 Mar 27 16:48 kryo-serializers-0.8.jar
    -rw-rw-r-- 1 magro magro     3085 Mar 27 16:48 minlog-1.2.jar
    -rw-rw-r-- 1 magro magro    23490 Mar 27 16:49 msm-kryo-serializer-1.6.1.jar
    -rw-rw-r-- 1 magro magro     8135 Mar 27 16:49 reflectasm-1.01.jar

    Cheers,
    Martin

    On 03/28/2012 12:43 PM, wolfateh wrote:






    could you provide me with more details  and send me the code /ROOT/
    META-INF/context.xm & conf/context.xml and the jar list
    because when i try to create folder /ROOT/META-INF/context.xml  and i
    map it to the conf/context.xml
    but Memcached not started
    there is several ways to store the session and its depend on tomcat
    methods to store the session
    On Mar 27, 6:37 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    I just followed your description and could reproduce the issue. To resolve
    it I copied the modified context.xml to webapps/ROOT/META-INF and reverted
    conf/context.xml. This is needed as only the ROOT context has the needed
    jars.
    With this I could successfully run tomcat/bin/catalina.sh and could login
    as some of the sample users.
    Though, I didn't see any session being written to memcached, so the
    question to me is where liferay actually does anything with sessions.
    Cheers,
    Martin
    Am 27.03.2012 09:12 schrieb "wolfateh" <wolfa...@gmail.com>:
    good morning
    i put the details in my first email
    any way here is the steps
    in folder "/liferay-portal-6.0.5/tomcat-6.0.26/conf/context.xml" i add
    this
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="n1:192.168.1.198:11211,n2:192.168.1.158:11211"
    sticky="false"
    sessionBackupAsync="false"
    lockingMode="uriPattern:/path1|/path2"
    sessionBackupTimeout="100"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
    transcoderFactoryClass="de.javakaffee....
    i copy jars to /liferay-portal-6.0.5/tomcat-6.0.26/lib
    memcached-2.6.jar
    memcached-session-manager-1.6.1.jar
    memcached-session-manager-tc6-1.6.1.jar
    spymemcached-2.8.1.jar
    also i copy jars to /liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/
    WEB-INF/lib
    asm-3.2.jar
    jrebel.jar
    kryo-1.04.jar
    kryo-serializers-0.9.jar
    minlog-1.2.jar
    msm-kryo-serializer-1.6.1.jar
    reflectasm-1.01.jar
    i add this line to /liferay-portal-6.0.5/tomcat-6.0.26/bin/setenv.sh
    CATALINA_OPTS="-
    Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.SunLogger"
    and i add this line to  /liferay-portal-6.0.5/tomcat-6.0.26/conf/
    logging.properties
    key:org.apache.catalina.tribes.MESSAGES
    org.apache.catalina.ha.session.ClusterSessionListener.level...
    net.spy.memcached.level = WARNING
    de.javakaffee.web.msm.level=FINE
    this all what i did exactly
    i hope it will help
    On Mar 26, 6:02 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    Please provide a detailed explanation which steps are needed to reproduce
    the issue. Downloading...
    Am 26.03.2012 16:51 schrieb "wolfateh" <wolfa...@gmail.com>:
    Hi Martin
    first i have only one webapps  and the other what you read in the log
    its portlets s...
    http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.0.5/...
    thanks alto for ur concern
    Cheers
    On Mar 26, 5:37 pm, Martin Grotzke <martin.grot...@googl...


    signature.asc
    < 1KViewDownload
  • Martin Grotzke at Mar 28, 2012 at 6:59 pm

    On 03/28/2012 04:22 PM, wolfateh wrote:
    #every thing went good but i got this FINE in my log could you tell
    me what is caused this

    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d
    This is debugging output, it tells which classloader was used to load
    the TranscoderFactory.

    #After this the container star-up fine
    and the session created but i think the MemcachedSessionService could
    not retrieve or re-invoke back the sessionID
    you can see this in this portion of the log
    Not sure why liferay creates that many sessions initially, I haven't
    looked at this in greater detail.

    After logging in I don't see the createSession(null) anymore, but

    Mar 28, 2012 3:08:41 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Loading session from memcached: F2A404699B65EC47C4482180E31BB8E0-n1
    Mar 28, 2012 3:08:41 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Found session with id F2A404699B65EC47C4482180E31BB8E0-n1

    (which is fine and shows that it's working)

    and sometimes also

    Mar 28, 2012 3:08:35 PM de.javakaffee.web.msm.MemcachedSessionService
    backupSession
    FINE: Session F2A404699B65EC47C4482180E31BB8E0-n1 is still used by
    another request, skipping backup and (optional) lock handling/release.

    (which can be ignored gracefully)


    Btw, looking at firebug shows that the static resources don't end with
    .css, .js etc. but have stuff appended. Also, there seems to be a
    /json_service that provides data that seems not to be related to the
    user/session.

    Therefore you should set

    requestUriIgnorePattern=".*(\.(ico|png|gif|jpg|css|js).*|/json_service)"

    Cheers,
    Martin
  • Wolfateh at Mar 29, 2012 at 9:52 am
    Hi again Martin
    thanks alto for ur concern and effort for my case


    i change the requestUriIgnorePattern as you told me
    requestUriIgnorePattern=".*(\.(ico|png|gif|jpg|css|js).*|/
    json_service)"

    but still the Same on logging in

    Mar 29, 2012 9:14:25 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id 011823006CC094C859D98B4C1D59455F
    Mar 29, 2012 9:14:25 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 29, 2012 9:14:25 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id 505AADFF311CF15D4621657FD9DE920F
    Mar 29, 2012 9:14:26 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 29, 2012 9:14:26 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id A3DD935731A197E98747A78A596D0507
    Mar 29, 2012 9:14:26 AM
    de.javakaffee.web.msm.MemcachedBackupSessionManager remove
    FINE: remove invoked, removeFromMemcached: true, id:
    A3DD935731A197E98747A78A596D0507
    Mar 29, 2012 9:14:26 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 29, 2012 9:14:26 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id A920C67879FC69A9FADFEC6AC3BBB7E4
    Mar 29, 2012 9:14:26 AM de.javakaffee.web.msm.MemcachedSessionService
    backupSession
    FINE: No session found in session map for
    A3DD935731A197E98747A78A596D0507
    Mar 29, 2012 9:14:26 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 29, 2012 9:14:26 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id 6F019DF7B188DA669EF84F955056360B
    Mar 29, 2012 9:14:26 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 29, 2012 9:14:26 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id EED0B69FC89D5769BE1110B74F8CFFF7
    Mar 29, 2012 9:14:30 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null
    Mar 29, 2012 9:14:31 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: Created new session with id 8CDF44B7F3AC926DC55BF2CFEB06C5A2
    Mar 29, 2012 9:14:31 AM de.javakaffee.web.msm.MemcachedSessionService
    createSession
    FINE: createSession invoked: null


    and regarding to ur Wondering about creating the session
    liferay create for the gust user session also that's way new session
    create on each request from non logging in user

    maybe this kryo-serializers method not work fine liferay non-sticky
    session therefor do u think it better to change the strategy ???




    On Mar 28, 9:59 pm, Martin Grotzke wrote:
    On 03/28/2012 04:22 PM, wolfateh wrote:

    #every thing went good but i got this FINE in my log  could you tell
    me what is  caused this
    FINE: Loading transcoder factory class
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory using
    classloader WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@77d80e6d
    This is debugging output, it tells which classloader was used to load
    the TranscoderFactory.
    #After this the container star-up fine
    and the session created but i think the MemcachedSessionService could
    not retrieve or re-invoke back the sessionID
    you can see this in this portion of the log
    Not sure why liferay creates that many sessions initially, I haven't
    looked at this in greater detail.

    After logging in I don't see the createSession(null) anymore, but

    Mar 28, 2012 3:08:41 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Loading session from memcached: F2A404699B65EC47C4482180E31BB8E0-n1
    Mar 28, 2012 3:08:41 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Found session with id F2A404699B65EC47C4482180E31BB8E0-n1

    (which is fine and shows that it's working)

    and sometimes also

    Mar 28, 2012 3:08:35 PM de.javakaffee.web.msm.MemcachedSessionService
    backupSession
    FINE: Session F2A404699B65EC47C4482180E31BB8E0-n1 is still used by
    another request, skipping backup and (optional) lock handling/release.

    (which can be ignored gracefully)

    Btw, looking at firebug shows that the static resources don't end with
    .css, .js etc. but have stuff appended. Also, there seems to be a
    /json_service that provides data that seems not to be related to the
    user/session.

    Therefore you should set

    requestUriIgnorePattern=".*(\.(ico|png|gif|jpg|css|js).*|/json_service)"

    Cheers,
    Martin

    signature.asc
    < 1KViewDownload
  • Martin Grotzke at Mar 29, 2012 at 2:23 pm

    On 03/29/2012 11:52 AM, wolfateh wrote:
    maybe this kryo-serializers method not work fine liferay non-sticky
    session therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes s.th.

    Cheers,
    Martin
  • Wolfateh at Mar 29, 2012 at 2:27 pm
    could you confirm if you could sing in in your test on liferay
    yesterday



    On Mar 29, 5:23 pm, Martin Grotzke wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session  therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes s.th.

    Cheers,
    Martin

    signature.asc
    < 1KViewDownload
  • Wolfateh at Mar 29, 2012 at 2:29 pm
    where i can find the s.th
    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday

    On Mar 29, 5:23 pm, Martin Grotzke wrote:






    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session  therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload
  • Martin Grotzke at Mar 29, 2012 at 2:50 pm

    On 03/29/2012 04:29 PM, wolfateh wrote:
    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.

    Cheers,
    Martin
    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday

    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:






    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload
  • Wolfateh at Mar 29, 2012 at 2:58 pm
    Saturday i will prepare online server and we could work together and
    see this the issue live

    thanks alto Martin for your help
    i really appreciated
    Cheers


    On Mar 29, 5:50 pm, Martin Grotzke wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.

    Cheers,
    Martin








    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session  therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload


    signature.asc
    < 1KViewDownload
  • Martin Grotzke at Mar 29, 2012 at 3:33 pm
    Ok, great. You can send details to martin.grotzke@googlemail.com.

    Cheers,
    Martin
      Am 29.03.2012 16:58 schrieb "wolfateh" <wolfateh@gmail.com>:
    Saturday i will prepare online server and we could work together and
    see this the issue live

    thanks alto Martin for your help
    i really appreciated
    Cheers


    On Mar 29, 5:50 pm, Martin Grotzke wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.

    Cheers,
    Martin








    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes s.th
    .
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload


    signature.asc
    < 1KViewDownload
  • M.fateh alchhabi at Mar 31, 2012 at 12:13 pm
    Hi
    1-i make two servers with load Blancer and this the details
    #server1 ip:64.151.109.120 user:root password:D6lblR0oXt
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    #server2 ip:173.204.51.171 user:root password:m@1z1@b
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    # Load Blancer ip:64.151.109.115 type:Round Robin Pesistence:Source Address

    2- I made this change on both server
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/lib
    <memcached-session-manager-1.6.1.jar
    ,memcached-session-manager-tc6-1.6.1.jar ,spymemcached-2.7.3.jar >
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib
    <asm-3.2.jar,kryo-1.04.jar,kryo-serializers-0.9.jar , minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar, reflectasm-1.01.jar >

    #i modified the ROOT.xml in the location
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost

    #also i add lines to the end of the logging.properties located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf

    # I modified the File setenv.sh located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/bin

    i hope it will help to solve the problem

    Cheers,






    On Thu, Mar 29, 2012 at 18:33, Martin Grotzke
    wrote:
    Ok, great. You can send details to martin.grotzke@googlemail.com.

    Cheers,
    Martin

    Am 29.03.2012 16:58 schrieb "wolfateh" <wolfateh@gmail.com>:
    Saturday i will prepare online server and we could work together and
    see this  the issue live

    thanks alto Martin for your help
    i really appreciated
    Cheers



    On Mar 29, 5:50 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.

    Cheers,
    Martin








    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session  therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes
    s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload


    signature.asc
    < 1KViewDownload
  • M.fateh alchhabi at Mar 31, 2012 at 2:02 pm
    martin
    the previous Email it publish on the public page
    plz take the info and delete it

    "Sun Certified Professional for Java Technology"
    •Sun Certified Programmer for the Java 2 Platform
    •Sun Certified Web Component Developer for the J2EE Platform
                           ***********************
    "Oracle Certified Professional for Oracle DataBase Technology"
    •Oracle9i ODBA(Oracle database Administrator)







    On Sat, Mar 31, 2012 at 15:12, m.fateh alchhabi wrote:
    Hi
    1-i make two servers with load Blancer and this the details
    #server1 ip:64.151.109.120 user:root password:D6lblR0oXt
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    #server2 ip:173.204.51.171 user:root password:m@1z1@b
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    # Load Blancer ip:64.151.109.115 type:Round Robin  Pesistence:Source Address

    2- I made this change on both server
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/lib
    <memcached-session-manager-1.6.1.jar
    ,memcached-session-manager-tc6-1.6.1.jar ,spymemcached-2.7.3.jar >
    #  I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib
    <asm-3.2.jar,kryo-1.04.jar,kryo-serializers-0.9.jar , minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar, reflectasm-1.01.jar  >

    #i modified the ROOT.xml in the location
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost

    #also i add lines to the end of the logging.properties located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf

    # I modified the File  setenv.sh located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/bin

    i hope it will help to solve the problem

    Cheers,






    On Thu, Mar 29, 2012 at 18:33, Martin Grotzke
    wrote:
    Ok, great. You can send details to martin.grotzke@googlemail.com.

    Cheers,
    Martin

    Am 29.03.2012 16:58 schrieb "wolfateh" <wolfateh@gmail.com>:
    Saturday i will prepare online server and we could work together and
    see this  the issue live

    thanks alto Martin for your help
    i really appreciated
    Cheers



    On Mar 29, 5:50 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.

    Cheers,
    Martin








    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session  therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes
    s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload


    signature.asc
    < 1KViewDownload
  • Martin Grotzke at Mar 31, 2012 at 3:00 pm
    I just had a quick look at
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost/ROOT.xml
    on 64.151.109.120 and the memcachedNodes are configured with port 80,
    where tomcat/liferay is listening on.

    The memcachedNodes configuration refers to the memcached servers.
    Therefore you must install memcached on server1 and server2 and use the
    memcached port in memcachedNodes configuration. By default the port
    should be 11211 so that the configuration should be
       memcachedNodes="n1:64.151.109.120:11211,n2:173.204.51.171:11211"

    Can you try this?

    Cheers,
    Martin

    On 03/31/2012 02:12 PM, m.fateh alchhabi wrote:
    Hi
    1-i make two servers with load Blancer and this the details
    #server1 ip:64.151.109.120 user:root password:D6lblR0oXt
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    #server2 ip:173.204.51.171 user:root password:m@1z1@b
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    # Load Blancer ip:64.151.109.115 type:Round Robin Pesistence:Source Address

    2- I made this change on both server
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/lib
    <memcached-session-manager-1.6.1.jar
    ,memcached-session-manager-tc6-1.6.1.jar ,spymemcached-2.7.3.jar >
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib
    <asm-3.2.jar,kryo-1.04.jar,kryo-serializers-0.9.jar , minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar, reflectasm-1.01.jar >

    #i modified the ROOT.xml in the location
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost

    #also i add lines to the end of the logging.properties located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf

    # I modified the File setenv.sh located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/bin

    i hope it will help to solve the problem

    Cheers,






    On Thu, Mar 29, 2012 at 18:33, Martin Grotzke
    wrote:
    Ok, great. You can send details to martin.grotzke@googlemail.com.

    Cheers,
    Martin

    Am 29.03.2012 16:58 schrieb "wolfateh" <wolfateh@gmail.com>:
    Saturday i will prepare online server and we could work together and
    see this the issue live

    thanks alto Martin for your help
    i really appreciated
    Cheers



    On Mar 29, 5:50 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.

    Cheers,
    Martin








    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes
    s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload


    signature.asc
    < 1KViewDownload
  • Wolfateh at Mar 31, 2012 at 3:07 pm
    i try on my local machine with the port 11211 but it give me the same
    result
    you can do what you want in the server change what u need no
    problem .. do it from ur side

    On Mar 31, 6:00 pm, Martin Grotzke wrote:
    I just had a quick look at
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost/ROOT.xml
    on 64.151.109.120 and the memcachedNodes are configured with port 80,
    where tomcat/liferay is listening on.

    The memcachedNodes configuration refers to the memcached servers.
    Therefore you must install memcached on server1 and server2 and use the
    memcached port in memcachedNodes configuration. By default the port
    should be 11211 so that the configuration should be
    memcachedNodes="n1:64.151.109.120:11211,n2:173.204.51.171:11211"

    Can you try this?

    Cheers,
    Martin

    On 03/31/2012 02:12 PM, m.fateh alchhabi wrote:






    Hi
    1-i make two servers with load Blancer and this the details
    #server1 ip:64.151.109.120 user:root password:D6lblR0oXt
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    #server2 ip:173.204.51.171 user:root password:m@1z1@b
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    # Load Blancer ip:64.151.109.115 type:Round Robin  Pesistence:Source Address
    2- I made this change on both server
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/lib
    <memcached-session-manager-1.6.1.jar
    ,memcached-session-manager-tc6-1.6.1.jar ,spymemcached-2.7.3.jar >
    #  I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib
    <asm-3.2.jar,kryo-1.04.jar,kryo-serializers-0.9.jar , minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar, reflectasm-1.01.jar  >
    #i modified the ROOT.xml in the location
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost
    #also i add lines to the end of the logging.properties located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf
    # I modified the File  setenv.sh located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/bin
    i hope it will help to solve the problem
    Cheers,
    On Thu, Mar 29, 2012 at 18:33, Martin Grotzke
    wrote:
    Ok, great. You can send details to martin.grot...@googlemail.com.
    Cheers,
    Martin
    Am 29.03.2012 16:58 schrieb "wolfateh" <wolfa...@gmail.com>:
    Saturday i will prepare online server and we could work together and
    see this  the issue live
    thanks alto Martin for your help
    i really appreciated
    Cheers
    On Mar 29, 5:50 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.
    Cheers,
    Martin
    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session  therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes
    s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload
    signature.asc
    < 1KViewDownload


    signature.asc
    < 1KViewDownload
  • Martin Grotzke at Mar 31, 2012 at 9:18 pm
    Hi,

    I installed memcached on 64.151.109.120, changed /etc/memcached.conf to
    set "-l 64.151.109.120" (by default it binds to 127.0.0.1) and changed
    ROOT.xml to contain memcachedNodes="n1:64.151.109.120:11211".

    Then running liferay seems fine so far:
    Mar 31, 2012 9:12:33 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Loading session from memcached: 6628894C97770CBAD78ACCDC7382FB19-n1
    Mar 31, 2012 9:12:33 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Found session with id 6628894C97770CBAD78ACCDC7382FB19-n1

    Unfortunately, I also discovered an issue with request couting
    (http://code.google.com/p/memcached-session-manager/issues/detail?id=128) that
    I would have to look at. So if you're really considering msm with
    liferay for now I'd recommend sticky sessions until #128 is solved.

    Cheers,
    Martin

    On 03/31/2012 05:07 PM, wolfateh wrote:
    i try on my local machine with the port 11211 but it give me the same
    result
    you can do what you want in the server change what u need no
    problem .. do it from ur side

    On Mar 31, 6:00 pm, Martin Grotzke wrote:
    I just had a quick look at
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost/ROOT.xml
    on 64.151.109.120 and the memcachedNodes are configured with port 80,
    where tomcat/liferay is listening on.

    The memcachedNodes configuration refers to the memcached servers.
    Therefore you must install memcached on server1 and server2 and use the
    memcached port in memcachedNodes configuration. By default the port
    should be 11211 so that the configuration should be
    memcachedNodes="n1:64.151.109.120:11211,n2:173.204.51.171:11211"

    Can you try this?

    Cheers,
    Martin

    On 03/31/2012 02:12 PM, m.fateh alchhabi wrote:






    Hi
    1-i make two servers with load Blancer and this the details
    #server1 ip:64.151.109.120 user:root password:D6lblR0oXt
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    #server2 ip:173.204.51.171 user:root password:m@1z1@b
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    # Load Blancer ip:64.151.109.115 type:Round Robin Pesistence:Source Address
    2- I made this change on both server
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/lib
    <memcached-session-manager-1.6.1.jar
    ,memcached-session-manager-tc6-1.6.1.jar ,spymemcached-2.7.3.jar >
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib
    <asm-3.2.jar,kryo-1.04.jar,kryo-serializers-0.9.jar , minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar, reflectasm-1.01.jar >
    #i modified the ROOT.xml in the location
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost
    #also i add lines to the end of the logging.properties located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf
    # I modified the File setenv.sh located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/bin
    i hope it will help to solve the problem
    Cheers,
    On Thu, Mar 29, 2012 at 18:33, Martin Grotzke
    wrote:
    Ok, great. You can send details to martin.grot...@googlemail.com.
    Cheers,
    Martin
    Am 29.03.2012 16:58 schrieb "wolfateh" <wolfa...@gmail.com>:
    Saturday i will prepare online server and we could work together and
    see this the issue live
    thanks alto Martin for your help
    i really appreciated
    Cheers
    On Mar 29, 5:50 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.
    Cheers,
    Martin
    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes
    s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload
    signature.asc
    < 1KViewDownload


    signature.asc
    < 1KViewDownload
  • M.fateh alchhabi at Apr 1, 2012 at 2:57 pm
    so when u put in the ROOT.xml the n1 only
    that's mean i can't use it in the cluster environment
    because when i add the n2 tomcat unable to login

    i will Waite till u solve the Issues 128
    become no plane for now to change the Hardware load blancer




    On Sun, Apr 1, 2012 at 00:18, Martin Grotzke
    wrote:
    Hi,

    I installed memcached on 64.151.109.120, changed /etc/memcached.conf to
    set "-l 64.151.109.120" (by default it binds to 127.0.0.1) and changed
    ROOT.xml to contain memcachedNodes="n1:64.151.109.120:11211".

    Then running liferay seems fine so far:
    Mar 31, 2012 9:12:33 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Loading session from memcached: 6628894C97770CBAD78ACCDC7382FB19-n1
    Mar 31, 2012 9:12:33 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Found session with id 6628894C97770CBAD78ACCDC7382FB19-n1

    Unfortunately, I also discovered an issue with request couting
    (http://code.google.com/p/memcached-session-manager/issues/detail?id=128) that
    I would have to look at. So if you're really considering msm with
    liferay for now I'd recommend sticky sessions until #128 is solved.

    Cheers,
    Martin

    On 03/31/2012 05:07 PM, wolfateh wrote:
    i try on my local machine with the port 11211 but it give me the same
    result
    you can do what you want in the server change what u need no
    problem .. do it from ur side


    On Mar 31, 6:00 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    I just had a quick look at
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost/ROOT.xml
    on 64.151.109.120 and the memcachedNodes are configured with port 80,
    where tomcat/liferay is listening on.

    The memcachedNodes configuration refers to the memcached servers.
    Therefore you must install memcached on server1 and server2 and use the
    memcached port in memcachedNodes configuration. By default the port
    should be 11211 so that the configuration should be
    memcachedNodes="n1:64.151.109.120:11211,n2:173.204.51.171:11211"

    Can you try this?

    Cheers,
    Martin

    On 03/31/2012 02:12 PM, m.fateh alchhabi wrote:






    Hi
    1-i make two servers with load Blancer and this the details
    #server1 ip:64.151.109.120 user:root password:D6lblR0oXt
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    #server2 ip:173.204.51.171 user:root password:m@1z1@b
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    # Load Blancer ip:64.151.109.115 type:Round Robin  Pesistence:Source Address
    2- I made this change on both server
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/lib
    <memcached-session-manager-1.6.1.jar
    ,memcached-session-manager-tc6-1.6.1.jar ,spymemcached-2.7.3.jar >
    #  I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib
    <asm-3.2.jar,kryo-1.04.jar,kryo-serializers-0.9.jar , minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar, reflectasm-1.01.jar  >
    #i modified the ROOT.xml in the location
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost
    #also i add lines to the end of the logging.properties located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf
    # I modified the File  setenv.sh located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/bin
    i hope it will help to solve the problem
    Cheers,
    On Thu, Mar 29, 2012 at 18:33, Martin Grotzke
    wrote:
    Ok, great. You can send details to martin.grot...@googlemail.com.
    Cheers,
    Martin
    Am 29.03.2012 16:58 schrieb "wolfateh" <wolfa...@gmail.com>:
    Saturday i will prepare online server and we could work together and
    see this  the issue live
    thanks alto Martin for your help
    i really appreciated
    Cheers
    On Mar 29, 5:50 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.
    Cheers,
    Martin
    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session  therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes
    s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload
    signature.asc
    < 1KViewDownload


    signature.asc
    < 1KViewDownload
  • Erictse at May 7, 2012 at 10:01 am
    Hi Martin,

    I followed this post because of having the same issue in my production
    liferay and memcached, and can replicate the issue easily in my httpd
    + 2 x tomcats in a single box.

    Is there any plan in bug fixing this ? Would you share your findings ?
    I do not mind helping..

    Eric
    On Apr 1, 10:57 pm, "m.fateh alchhabi" wrote:
    so when u put in the ROOT.xml the n1 only
    that's mean i can't use it in the cluster environment
    because when i add the n2 tomcat unable to login

    i will Waite till u solve the Issues 128
    become no plane for now to change the Hardware load blancer

    On Sun, Apr 1, 2012 at 00:18, Martin Grotzke







    wrote:
    Hi,
    I installed memcached on 64.151.109.120, changed /etc/memcached.conf to
    set "-l 64.151.109.120" (by default it binds to 127.0.0.1) and changed
    ROOT.xml to contain memcachedNodes="n1:64.151.109.120:11211".
    Then running liferay seems fine so far:
    Mar 31, 2012 9:12:33 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Loading session from memcached: 6628894C97770CBAD78ACCDC7382FB19-n1
    Mar 31, 2012 9:12:33 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Found session with id 6628894C97770CBAD78ACCDC7382FB19-n1
    Unfortunately, I also discovered an issue with request couting
    (http://code.google.com/p/memcached-session-manager/issues/detail?id=128) that
    I would have to look at. So if you're really considering msm with
    liferay for now I'd recommend sticky sessions until #128 is solved.
    Cheers,
    Martin
    On 03/31/2012 05:07 PM, wolfateh wrote:
    i try on my local machine with the port 11211 but it give me the same
    result
    you can do what you want in the server change what u need no
    problem .. do it from ur side
    On Mar 31, 6:00 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    I just had a quick look at
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost/ROOT.xml
    on 64.151.109.120 and the memcachedNodes are configured with port 80,
    where tomcat/liferay is listening on.
    The memcachedNodes configuration refers to the memcached servers.
    Therefore you must install memcached on server1 and server2 and use the
    memcached port in memcachedNodes configuration. By default the port
    should be 11211 so that the configuration should be
    memcachedNodes="n1:64.151.109.120:11211,n2:173.204.51.171:11211"
    Can you try this?
    Cheers,
    Martin
    On 03/31/2012 02:12 PM, m.fateh alchhabi wrote:

    Hi
    1-i make two servers with load Blancer and this the details
    #server1 ip:64.151.109.120 user:root password:D6lblR0oXt
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    #server2 ip:173.204.51.171 user:root password:m@1z1@b
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    # Load Blancer ip:64.151.109.115 type:Round Robin  Pesistence:Source Address
    2- I made this change on both server
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/lib
    <memcached-session-manager-1.6.1.jar
    ,memcached-session-manager-tc6-1.6.1.jar ,spymemcached-2.7.3.jar >
    #  I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib
    <asm-3.2.jar,kryo-1.04.jar,kryo-serializers-0.9.jar , minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar, reflectasm-1.01.jar  >
    #i modified the ROOT.xml in the location
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost
    #also i add lines to the end of the logging.properties located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf
    # I modified the File  setenv.sh located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/bin
    i hope it will help to solve the problem
    Cheers,
    On Thu, Mar 29, 2012 at 18:33, Martin Grotzke
    wrote:
    Ok, great. You can send details to martin.grot...@googlemail.com.
    Cheers,
    Martin
    Am 29.03.2012 16:58 schrieb "wolfateh" <wolfa...@gmail.com>:
    Saturday i will prepare online server and we could work together and
    see this  the issue live
    thanks alto Martin for your help
    i really appreciated
    Cheers
    On Mar 29, 5:50 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.
    Cheers,
    Martin
    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session  therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes
    s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload
    signature.asc
    < 1KViewDownload
    signature.asc
    < 1KViewDownload
  • Martin Grotzke at May 7, 2012 at 10:07 am
    Hi Eric,

    I'm still working on a new version of msm that supports
    ServletRequestListeners with tomcat 7.0.22+. The changes that are needed
    for this should also improve the situation for liferay, though I still
    have to verify this.

    As soon as I have a version for testing I'll let you know (this or the
    next week), testing this one with liferay would be helpful.

    Cheers,
    Martin


    On 05/07/2012 11:50 AM, erictse wrote:
    Hi Martin,

    I followed this post because of having the same issue in my production
    liferay and memcached, and can replicate the issue easily in my httpd
    + 2 x tomcats in a single box.

    Is there any plan in bug fixing this ? Would you share your findings ?
    I do not mind helping..

    Eric
    On Apr 1, 10:57 pm, "m.fateh alchhabi" wrote:
    so when u put in the ROOT.xml the n1 only
    that's mean i can't use it in the cluster environment
    because when i add the n2 tomcat unable to login

    i will Waite till u solve the Issues 128
    become no plane for now to change the Hardware load blancer

    On Sun, Apr 1, 2012 at 00:18, Martin Grotzke







    wrote:
    Hi,
    I installed memcached on 64.151.109.120, changed /etc/memcached.conf to
    set "-l 64.151.109.120" (by default it binds to 127.0.0.1) and changed
    ROOT.xml to contain memcachedNodes="n1:64.151.109.120:11211".
    Then running liferay seems fine so far:
    Mar 31, 2012 9:12:33 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Loading session from memcached: 6628894C97770CBAD78ACCDC7382FB19-n1
    Mar 31, 2012 9:12:33 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Found session with id 6628894C97770CBAD78ACCDC7382FB19-n1
    Unfortunately, I also discovered an issue with request couting
    (http://code.google.com/p/memcached-session-manager/issues/detail?id=128) that
    I would have to look at. So if you're really considering msm with
    liferay for now I'd recommend sticky sessions until #128 is solved.
    Cheers,
    Martin
    On 03/31/2012 05:07 PM, wolfateh wrote:
    i try on my local machine with the port 11211 but it give me the same
    result
    you can do what you want in the server change what u need no
    problem .. do it from ur side
    On Mar 31, 6:00 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    I just had a quick look at
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost/ROOT.xml
    on 64.151.109.120 and the memcachedNodes are configured with port 80,
    where tomcat/liferay is listening on.
    The memcachedNodes configuration refers to the memcached servers.
    Therefore you must install memcached on server1 and server2 and use the
    memcached port in memcachedNodes configuration. By default the port
    should be 11211 so that the configuration should be
    memcachedNodes="n1:64.151.109.120:11211,n2:173.204.51.171:11211"
    Can you try this?
    Cheers,
    Martin
    On 03/31/2012 02:12 PM, m.fateh alchhabi wrote:

    Hi
    1-i make two servers with load Blancer and this the details
    #server1 ip:64.151.109.120 user:root password:D6lblR0oXt
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    #server2 ip:173.204.51.171 user:root password:m@1z1@b
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    # Load Blancer ip:64.151.109.115 type:Round Robin Pesistence:Source Address
    2- I made this change on both server
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/lib
    <memcached-session-manager-1.6.1.jar
    ,memcached-session-manager-tc6-1.6.1.jar ,spymemcached-2.7.3.jar >
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib
    <asm-3.2.jar,kryo-1.04.jar,kryo-serializers-0.9.jar , minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar, reflectasm-1.01.jar >
    #i modified the ROOT.xml in the location
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost
    #also i add lines to the end of the logging.properties located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf
    # I modified the File setenv.sh located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/bin
    i hope it will help to solve the problem
    Cheers,
    On Thu, Mar 29, 2012 at 18:33, Martin Grotzke
    wrote:
    Ok, great. You can send details to martin.grot...@googlemail.com.
    Cheers,
    Martin
    Am 29.03.2012 16:58 schrieb "wolfateh" <wolfa...@gmail.com>:
    Saturday i will prepare online server and we could work together and
    see this the issue live
    thanks alto Martin for your help
    i really appreciated
    Cheers
    On Mar 29, 5:50 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.
    Cheers,
    Martin
    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes
    s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload
    signature.asc
    < 1KViewDownload
    signature.asc
    < 1KViewDownload
    --
    Brakhane, Grotzke und Langbehn Informatiker und Physiker PartG
    Breitenfelder Str. 13c, 20251 Hamburg
    Amtsgericht Hamburg, PR 795
  • Erictse at May 7, 2012 at 10:09 am
    Thanks a lot, Martin !
    On May 7, 6:07 pm, Martin Grotzke wrote:
    Hi Eric,

    I'm still working on a new version of msm that supports
    ServletRequestListeners with tomcat 7.0.22+. The changes that are needed
    for this should also improve the situation for liferay, though I still
    have to verify this.

    As soon as I have a version for testing I'll let you know (this or the
    next week), testing this one with liferay would be helpful.

    Cheers,
    Martin

    On 05/07/2012 11:50 AM, erictse wrote:








    Hi Martin,
    I followed this post because of having the same issue in my production
    liferay and memcached, and can replicate the issue easily in my httpd
    + 2 x tomcats in a single box.
    Is there any plan in bug fixing this ? Would you share your findings ?
    I do not mind helping..
    Eric
    On Apr 1, 10:57 pm, "m.fateh alchhabi" wrote:
    so when u put in the ROOT.xml the n1 only
    that's mean i can't use it in the cluster environment
    because when i add the n2 tomcat unable to login
    i will Waite till u solve the Issues 128
    become no plane for now to change the Hardware load blancer
    On Sun, Apr 1, 2012 at 00:18, Martin Grotzke
    wrote:
    Hi,
    I installed memcached on 64.151.109.120, changed /etc/memcached.conf to
    set "-l 64.151.109.120" (by default it binds to 127.0.0.1) and changed
    ROOT.xml to contain memcachedNodes="n1:64.151.109.120:11211".
    Then running liferay seems fine so far:
    Mar 31, 2012 9:12:33 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Loading session from memcached: 6628894C97770CBAD78ACCDC7382FB19-n1
    Mar 31, 2012 9:12:33 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Found session with id 6628894C97770CBAD78ACCDC7382FB19-n1
    Unfortunately, I also discovered an issue with request couting
    (http://code.google.com/p/memcached-session-manager/issues/detail?id=128) that
    I would have to look at. So if you're really considering msm with
    liferay for now I'd recommend sticky sessions until #128 is solved.
    Cheers,
    Martin
    On 03/31/2012 05:07 PM, wolfateh wrote:
    i try on my local machine with the port 11211 but it give me the same
    result
    you can do what you want in the server change what u need no
    problem .. do it from ur side
    On Mar 31, 6:00 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    I just had a quick look at
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost/ROOT.xml
    on 64.151.109.120 and the memcachedNodes are configured with port 80,
    where tomcat/liferay is listening on.
    The memcachedNodes configuration refers to the memcached servers.
    Therefore you must install memcached on server1 and server2 and use the
    memcached port in memcachedNodes configuration. By default the port
    should be 11211 so that the configuration should be
    memcachedNodes="n1:64.151.109.120:11211,n2:173.204.51.171:11211"
    Can you try this?
    Cheers,
    Martin
    On 03/31/2012 02:12 PM, m.fateh alchhabi wrote:

    Hi
    1-i make two servers with load Blancer and this the details
    #server1 ip:64.151.109.120 user:root password:D6lblR0oXt
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    #server2 ip:173.204.51.171 user:root password:m@1z1@b
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    # Load Blancer ip:64.151.109.115 type:Round Robin  Pesistence:Source Address
    2- I made this change on both server
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/lib
    <memcached-session-manager-1.6.1.jar
    ,memcached-session-manager-tc6-1.6.1.jar ,spymemcached-2.7.3.jar >
    #  I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib
    <asm-3.2.jar,kryo-1.04.jar,kryo-serializers-0.9.jar , minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar, reflectasm-1.01.jar  >
    #i modified the ROOT.xml in the location
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost
    #also i add lines to the end of the logging.properties located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf
    # I modified the File  setenv.sh located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/bin
    i hope it will help to solve the problem
    Cheers,
    On Thu, Mar 29, 2012 at 18:33, Martin Grotzke
    wrote:
    Ok, great. You can send details to martin.grot...@googlemail.com.
    Cheers,
    Martin
    Am 29.03.2012 16:58 schrieb "wolfateh" <wolfa...@gmail.com>:
    Saturday i will prepare online server and we could work together and
    see this  the issue live
    thanks alto Martin for your help
    i really appreciated
    Cheers
    On Mar 29, 5:50 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.
    Cheers,
    Martin
    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session  therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes
    s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload
    signature.asc
    < 1KViewDownload
    signature.asc
    < 1KViewDownload
    --
    Brakhane, Grotzke und Langbehn Informatiker und Physiker PartG
    Breitenfelder Str. 13c, 20251 Hamburg
    Amtsgericht Hamburg, PR 795

    signature.asc
    < 1KViewDownload
  • Srinivas at May 8, 2012 at 8:13 pm
    Hi Martin,

    Following the instructions on the wiki & in this group, I was able to
    get failover kind of working in Liferay 6.0.6 (running on Tomcat
    6.0.29).  I am using sticky sessions and have enabled Memcached
    session manager only for the ROOT (Liferay) web app.  So the ROOT web
    app's session is being saved to Memcache and failover is happening
    (i.e user is not getting redirected to login page after failover since
    auth tokens are present in the session retrieved by the new node).
     However, I'm not able to store my portlet session data in Memcache as
    enabling MSM for all my portlet web apps is resulting in errors during
    deserialization (ClassNotFoundException).  I have my portlets deployed
    as separate WARs.  As a result, each of these portlets gets a
    different session object.  However, looks like Liferay ensures that
    the session id is the same even though the session object is different
    for each portlet app (something similar to setting emptySessionPath to
    true in Tomcat connector though I think Liferay is doing this by way
    of filters).  Since the key used by MSM to store the data to Memcache
    is something like 8DDABC10CCEC97B16C3DA697235C7C01-n1, is it possible
    to enable msm for all portlets?  Or will doing so cause one portlet
    session to overwrite another portlet’s session or the ROOT’s session
    since they all use the same session id
    (8DDABC10CCEC97B16C3DA697235C7C01)?

    Thanks.
  • Martin Grotzke at May 8, 2012 at 9:50 pm
    Hi,

    if they share the same session id the session will be overridden in
    memcached. Other clustering solutions might provide inspiration for
    solutions. Unfortunately I'm too busy to look into this ATM, so you would
    have to check for solutions by yourself.

    Cheers,
    Martin
    Am 08.05.2012 22:13 schrieb "Srinivas" <mpsrinivas@gmail.com>:
    Hi Martin,

    Following the instructions on the wiki & in this group, I was able to
    get failover kind of working in Liferay 6.0.6 (running on Tomcat
    6.0.29). I am using sticky sessions and have enabled Memcached
    session manager only for the ROOT (Liferay) web app. So the ROOT web
    app's session is being saved to Memcache and failover is happening
    (i.e user is not getting redirected to login page after failover since
    auth tokens are present in the session retrieved by the new node).
    However, I'm not able to store my portlet session data in Memcache as
    enabling MSM for all my portlet web apps is resulting in errors during
    deserialization (ClassNotFoundException). I have my portlets deployed
    as separate WARs. As a result, each of these portlets gets a
    different session object. However, looks like Liferay ensures that
    the session id is the same even though the session object is different
    for each portlet app (something similar to setting emptySessionPath to
    true in Tomcat connector though I think Liferay is doing this by way
    of filters). Since the key used by MSM to store the data to Memcache
    is something like 8DDABC10CCEC97B16C3DA697235C7C01-n1, is it possible
    to enable msm for all portlets? Or will doing so cause one portlet
    session to overwrite another portlet’s session or the ROOT’s session
    since they all use the same session id
    (8DDABC10CCEC97B16C3DA697235C7C01)?

    Thanks.
  • Jocker at Jan 24, 2014 at 12:56 am
    Hi frinds,

    Was anyone able to run memcached-session-manager in lifray? What are the
    main points of success?

    --

    ---
    You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-manager+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Martin Grotzke at Jan 23, 2014 at 7:21 pm
    The issue described in this thread seems to be
    https://code.google.com/p/memcached-session-manager/issues/detail?id=173 -
    which I'm currently working on. So maybe there's soon a version of msm that
    allows multiple contexts/webapps to share the same session id.

    Cheers,
    Martin

    Cheers,
    Martin
    Am 23.01.2014 19:22 schrieb "Jocker" <kdmitry24@gmail.com>:
    Hi frinds,

    Was anyone able to run memcached-session-manager in lifray? What are the
    main points of success?
    --

    ---
    You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-manager+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Martin Grotzke at Jan 24, 2014 at 1:12 am
    I just added a build/jars of msm that includes a fix for issue 173
    https://code.google.com/p/memcached-session-manager/issues/detail?id=173

    With this you can configure e.g. storageKeyPrefix="context" or
    storageKeyPrefix="static:someprefix" for msm.
    Perhaps this already solves the issue?

    Cheers,
    Martin

    On 01/23/2014 08:21 PM, Martin Grotzke wrote:
    The issue described in this thread seems to be
    https://code.google.com/p/memcached-session-manager/issues/detail?id=173
    - which I'm currently working on. So maybe there's soon a version of msm
    that allows multiple contexts/webapps to share the same session id.

    Cheers,
    Martin

    Cheers,
    Martin

    Am 23.01.2014 19:22 schrieb "Jocker" <kdmitry24@gmail.com

    Hi frinds,

    Was anyone able to run memcached-session-manager in lifray? What are
    the main points of success?
    --
    inoio gmbh - http://inoio.de
    Schulterblatt 36, 20357 Hamburg
    Amtsgericht Hamburg, HRB 123031
    Geschäftsführer: Dennis Brakhane, Martin Grotzke, Ole Langbehn
  • Jocker at Jan 24, 2014 at 3:47 pm
    Hello Martin, thank you for your fast response and effort.

    But I still getting the error when testing the failover:

    Jan 24, 2014 12:17:12 PM de.javakaffee.web.msm.MemcachedSessionService loadFromMemcached
    FINE: Loading session from memcached: BC049C97B84421FC52DBE5CF8082167B
    Jan 24, 2014 12:17:12 PM de.javakaffee.web.msm.MemcachedSessionService loadFromMemcached
    WARNING: Could not load session with id BC049C97B84421FC52DBE5CF8082167B from memcached.
    com.esotericsoftware.kryo.SerializationException: Unable to deserialize object of type: java.util.concurrent.ConcurrentHashMap
      at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:593)
      at com.esotericsoftware.kryo.ObjectBuffer.readObject(ObjectBuffer.java:213)
      at de.javakaffee.web.msm.serializer.kryo.KryoTranscoder.deserializeAttributes(KryoTranscoder.java:256)
      at de.javakaffee.web.msm.TranscoderService.deserializeAttributes(TranscoderService.java:171)
      at de.javakaffee.web.msm.TranscoderService.deserialize(TranscoderService.java:128)
      at de.javakaffee.web.msm.MemcachedSessionService.loadFromMemcached(MemcachedSessionService.java:1100)
      at de.javakaffee.web.msm.MemcachedSessionService.findSession(MemcachedSessionService.java:585)
      at de.javakaffee.web.msm.MemcachedBackupSessionManager.findSession(MemcachedBackupSessionManager.java:216)
      at org.apache.catalina.connector.Request.doGetSession(Request.java:2850)
      at org.apache.catalina.connector.Request.getSessionInternal(Request.java:2507)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:427)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
      at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
      at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
      at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
      at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:156)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:701)
    Caused by: com.esotericsoftware.kryo.SerializationException: Unable to find class: com.demoapp.commons.domain.user.AccessToken
      at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:449)
      at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:561)
      at com.esotericsoftware.kryo.serialize.MapSerializer.readObjectData(MapSerializer.java:129)
      at com.esotericsoftware.kryo.Serializer.readObject(Serializer.java:61)
      at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:589)
      ... 26 more
    Caused by: java.lang.ClassNotFoundException: com.demoapp.commons.domain.user.AccessToken
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:270)
      at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:447)
      ... 30 more
    Jan 24, 2014 12:17:12 PM de.javakaffee.web.msm.MemcachedSessionService loadFromMemcached
    FINE: Loading session from memcached: BC049C97B84421FC52DBE5CF8082167B
    Jan 24, 2014 12:17:12 PM de.javakaffee.web.msm.MemcachedSessionService loadFromMemcached
    WARNING: Could not load session with id BC049C97B84421FC52DBE5CF8082167B from memcached.
    com.esotericsoftware.kryo.SerializationException: Unable to deserialize object of type: java.util.concurrent.ConcurrentHashMap
      at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:593)
      at com.esotericsoftware.kryo.ObjectBuffer.readObject(ObjectBuffer.java:213)
      at de.javakaffee.web.msm.serializer.kryo.KryoTranscoder.deserializeAttributes(KryoTranscoder.java:256)
      at de.javakaffee.web.msm.TranscoderService.deserializeAttributes(TranscoderService.java:171)
      at de.javakaffee.web.msm.TranscoderService.deserialize(TranscoderService.java:128)
      at de.javakaffee.web.msm.MemcachedSessionService.loadFromMemcached(MemcachedSessionService.java:1100)
      at de.javakaffee.web.msm.MemcachedSessionService.findSession(MemcachedSessionService.java:585)
      at de.javakaffee.web.msm.MemcachedBackupSessionManager.findSession(MemcachedBackupSessionManager.java:216)
      at org.apache.catalina.connector.Request.doGetSession(Request.java:2850)
      at org.apache.catalina.connector.Request.getSession(Request.java:2307)
      at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898)
      at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:910)
      at com.liferay.portal.servlet.filters.absoluteredirects.AbsoluteRedirectsFilter.doFilterTry(AbsoluteRedirectsFilter.java:68)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:185)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at de.javakaffee.web.msm.RequestTrackingContextValve.invoke(RequestTrackingContextValve.java:99)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
      at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
      at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
      at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:124)
      at de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:156)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:701)
    Caused by: com.esotericsoftware.kryo.SerializationException: Unable to find class: com.demoapp.commons.domain.user.AccessToken
      at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:449)
      at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:561)
      at com.esotericsoftware.kryo.serialize.MapSerializer.readObjectData(MapSerializer.java:129)
      at com.esotericsoftware.kryo.Serializer.readObject(Serializer.java:61)
      at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:589)
      ... 52 more
    Caused by: java.lang.ClassNotFoundException: com.demoapp.commons.domain.user.AccessToken
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:270)
      at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:447)
      ... 56 more
    Jan 24, 2014 12:17:12 PM de.javakaffee.web.msm.MemcachedSessionService createSession
    FINE: createSession invoked: null
    Jan 24, 2014 12:17:12 PM de.javakaffee.web.msm.MemcachedSessionService createSession
    FINE: Created new session with id 3D98B2966260787E9DEBB9FB4EEB1709

    my conf/context.xml is as follow:

    <Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
         memcachedNodes="tomcat-session.xxxxx.xxx.use1.cache.amazonaws.com:11211"
         requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
         transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
         sessionBackupAsync="true"
         sticky="true"
         copyCollectionsForSerialization="false"
         storageKeyPrefix="context"
    />

    --

    ---
    You received this message because you are subscribed to the Google Groups "memcached-session-manager" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to memcached-session-manager+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Wolfateh at Mar 31, 2012 at 3:14 pm
    i put the new root password in the Server 173.204.51.171 location dir /
    fateh/passwd.txt

    you may change what ever u want

    Cheers

    On Mar 31, 6:00 pm, Martin Grotzke wrote:
    I just had a quick look at
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost/ROOT.xml
    on 64.151.109.120 and the memcachedNodes are configured with port 80,
    where tomcat/liferay is listening on.

    The memcachedNodes configuration refers to the memcached servers.
    Therefore you must install memcached on server1 and server2 and use the
    memcached port in memcachedNodes configuration. By default the port
    should be 11211 so that the configuration should be
    memcachedNodes="n1:64.151.109.120:11211,n2:173.204.51.171:11211"

    Can you try this?

    Cheers,
    Martin

    On 03/31/2012 02:12 PM, m.fateh alchhabi wrote:






    Hi
    1-i make two servers with load Blancer and this the details
    #server1 ip:64.151.109.120 user:root password:D6lblR0oXt
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    #server2 ip:173.204.51.171 user:root password:m@1z1@b
    liferay located it in the path /fateh/liferay-portal-6.0.5/tomcat-6.0.26/
    # Load Blancer ip:64.151.109.115 type:Round Robin  Pesistence:Source Address
    2- I made this change on both server
    # I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/lib
    <memcached-session-manager-1.6.1.jar
    ,memcached-session-manager-tc6-1.6.1.jar ,spymemcached-2.7.3.jar >
    #  I add the jars list to
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib
    <asm-3.2.jar,kryo-1.04.jar,kryo-serializers-0.9.jar , minlog-1.2.jar,
    msm-kryo-serializer-1.6.1.jar, reflectasm-1.01.jar  >
    #i modified the ROOT.xml in the location
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf/Catalina/localhost
    #also i add lines to the end of the logging.properties located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/conf
    # I modified the File  setenv.sh located in
    /fateh/liferay-portal-6.0.5/tomcat-6.0.26/bin
    i hope it will help to solve the problem
    Cheers,
    On Thu, Mar 29, 2012 at 18:33, Martin Grotzke
    wrote:
    Ok, great. You can send details to martin.grot...@googlemail.com.
    Cheers,
    Martin
    Am 29.03.2012 16:58 schrieb "wolfateh" <wolfa...@gmail.com>:
    Saturday i will prepare online server and we could work together and
    see this  the issue live
    thanks alto Martin for your help
    i really appreciated
    Cheers
    On Mar 29, 5:50 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.
    Cheers,
    Martin
    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session  therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes
    s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload
    signature.asc
    < 1KViewDownload


    signature.asc
    < 1KViewDownload
  • Wolfateh at Mar 29, 2012 at 3:01 pm
    could you send me your email So i can send your the server details
    On Mar 29, 5:50 pm, Martin Grotzke wrote:
    On 03/29/2012 04:29 PM, wolfateh wrote:

    where i can find the s.th
    With "if it changes s.th." I mean that e.g. your issue would be gone,
    the logs look different or any other changes worth mentioning.

    Cheers,
    Martin








    On Mar 29, 5:27 pm, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    On Mar 29, 5:23 pm, Martin Grotzke <martin.grot...@googlemail.com>
    wrote:
    On 03/29/2012 11:52 AM, wolfateh wrote:

    maybe this kryo-serializers method not work fine liferay non-sticky
    session  therefor do u think it better to change the strategy ???
    I don't think so. But you can just try it and see if it changes s.th.
    Cheers,
    Martin
    signature.asc
    < 1KViewDownload


    signature.asc
    < 1KViewDownload
  • Martin Grotzke at Mar 29, 2012 at 2:49 pm

    On 03/29/2012 04:27 PM, wolfateh wrote:
    could you confirm if you could sing in in your test on liferay
    yesterday
    Confirmed.

    Cheers,
    Martin
  • Wolfateh at Mar 29, 2012 at 9:59 am

    Not sure why liferay creates that many sessions initially, I haven't
    looked at this in greater detail.

    After logging in I don't see the createSession(null) anymore, but

    Mar 28, 2012 3:08:41 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Loading session from memcached: F2A404699B65EC47C4482180E31BB8E0-n1
    Mar 28, 2012 3:08:41 PM de.javakaffee.web.msm.MemcachedSessionService
    loadFromMemcached
    FINE: Found session with id F2A404699B65EC47C4482180E31BB8E0-n1

    (which is fine and shows that it's working)

    and sometimes also

    Mar 28, 2012 3:08:35 PM de.javakaffee.web.msm.MemcachedSessionService
    backupSession
    FINE: Session F2A404699B65EC47C4482180E31BB8E0-n1 is still used by
    another request, skipping backup and (optional) lock handling/release.

    (which can be ignored gracefully)


    may i know how u successfully you could log-in
    i try alot to log-in but no luck ????
  • Martin Grotzke at Mar 29, 2012 at 2:48 pm

    On 03/29/2012 11:59 AM, wolfateh wrote:
    may i know how u successfully you could log-in
    i try alot to log-in but no luck ????
    I didn't do anything than I wrote you. Perhaps I would have to do all
    steps from the beginning again, and see that still for me everything is
    fine. Unfortunately I probably won't have time for this the next 2 days.

    Probably there are subtle differences that need some time to find out.
    So the question is how to get a totally reproducable sample (e.g. some
    virtual machine with your setup that you can share with me ;-)).

    Cheers,
    Martin

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmemcached-session-manager @
categoriesmemcached
postedMar 25, '12 at 2:28p
activeJan 24, '14 at 3:47p
posts41
users5
websitememcached.org

People

Translate

site design / logo © 2022 Grokbase