Hello,

I am trying to configure Tomcat 7 cluster session replication and load
balancing.
This is my first project as far as Web development is concerned so have no
experience with Tomcat.

What I have done is as Follows.

Installed CouchBase server 1.8.x by using community deb file on KUbuntu
10.04 64bit.
Installed Tomcat 7.0.32 .
Application for testing is default example application in webapps dir.
Tested vanila tomcat working by running the example application and
confirmed that it works.

Created bucket "tomcat" in couch base console . (see screenshot)

in example folder created META-INF/context.xml as follows

<?xml version="1.0" encoding="UTF-8"?>
<Context>
<Manager
className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
memcachedNodes="http://localhost:11211/pools"
username="tomcat"
password="rsp123"
sticky="false"
sessionBackupAsync="false"
requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

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

</Context>

copied necessary jars to lib folder
started couchbase server but a message appeared "Failed to start
couchbase-server"
but I could connect Administrative console on localhost:8091 and check
bucket so I continued
but I would like to explore why this message is being shown. (screenshot
attached)

started tomcat

but it resulted in exception. The catalina.out file is as below.

Can somebody help me out in getting it running ?

Thanks and warm regards
Nov 20, 2012 9:53:39 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-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
Nov 20, 2012 9:53:40 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8180"]
Nov 20, 2012 9:53:41 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8109"]
Nov 20, 2012 9:53:41 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3613 ms
Nov 20, 2012 9:53:41 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Nov 20, 2012 9:53:41 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.32
Nov 20, 2012 9:53:41 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory
/home/rsp/ATC-1/webapps/host-manager
Nov 20, 2012 9:53:42 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory /home/rsp/ATC-1/webapps/docs
Nov 20, 2012 9:53:42 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory /home/rsp/ATC-1/webapps/ROOT
Nov 20, 2012 9:53:42 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory /home/rsp/ATC-1/webapps/manager
Nov 20, 2012 9:53:42 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory /home/rsp/ATC-1/webapps/examples
Nov 20, 2012 9:53:43 PM de.javakaffee.web.msm.MemcachedSessionService
startInternal
INFO: MemcachedSessionService starts initialization... (configured nodes
definition http://localhost:11211/pools, failover nodes null)
Nov 20, 2012 9:53:43 PM org.apache.catalina.core.StandardContext
startInternal
SEVERE: Error manager.start()
org.apache.catalina.LifecycleException: Failed to start component
[de.javakaffee.web.msm.MemcachedBackupSessionManager[/examples]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1105)
at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1664)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.NoClassDefFoundError:
org/codehaus/jettison/json/JSONException
at
net.spy.memcached.vbucket.ConfigurationProviderHTTP.<init>(ConfigurationProviderHTTP.java:50)
at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:257)
at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:219)
at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:343)
at
de.javakaffee.web.msm.MemcachedSessionService.createMemcachedClient(MemcachedSessionService.java:484)
at
de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:420)
at
de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:509)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 13 more
Caused by: java.lang.ClassNotFoundException:
org.codehaus.jettison.json.JSONException
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)
... 21 more
Nov 20, 2012 9:53:43 PM org.apache.catalina.core.StandardContext
startInternal
SEVERE: Context [/examples] startup failed due to previous errors
Nov 20, 2012 9:53:43 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8180"]
Nov 20, 2012 9:53:43 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8109"]
Nov 20, 2012 9:53:43 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2229 ms
Nov 20, 2012 10:24:37 PM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port.
Stopping the Server instance.
Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8180"]
Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8109"]
Nov 20, 2012 10:24:37 PM org.apache.catalina.core.StandardService
stopInternal
INFO: Stopping service Catalina
Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8180"]
Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8109"]
Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8180"]
Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8109"]
Nov 20, 2012 10:24:37 PM de.javakaffee.web.msm.MemcachedSessionService
shutdown
INFO: Stopping services.
Nov 20, 2012 10:24:37 PM org.apache.catalina.util.LifecycleBase destroy
WARNING: Calling stop() on failed component [{0}] to trigger clean-up did
not complete.
org.apache.catalina.LifecycleException: Failed to stop component
[de.javakaffee.web.msm.MemcachedBackupSessionManager[/examples]]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
at
org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:272)
at
org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1214)
at
org.apache.catalina.core.StandardContext.destroyInternal(StandardContext.java:5590)
at
org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304)
at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
at
org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1234)
at
org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304)
at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
at
org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1234)
at
org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304)
at
org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:593)
at
org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304)
at
org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:822)
at
org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:752)
at org.apache.catalina.startup.Catalina.start(Catalina.java:713)
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:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
Caused by: java.lang.NullPointerException
at
de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionService.java:387)
at
de.javakaffee.web.msm.MemcachedBackupSessionManager.stopInternal(MemcachedBackupSessionManager.java:527)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
... 22 more
<https://lh4.googleusercontent.com/-vaU4pXNYxQQ/UKuy0kfCOCI/AAAAAAAAAAM/XUku1g2YVAs/s1600/tomcat-bucket.jpeg><https://lh5.googleusercontent.com/-QTRkZ4K17bo/UKu1YKSd0XI/AAAAAAAAAAc/DfZubcEigUg/s1600/start-couchbase.jpeg>

Search Discussions

  • Martin Grotzke at Nov 20, 2012 at 8:32 pm
    Hi,

    for membase buckets you also need to have jettison.jar available in
    CATALINA_HOME/lib/.
    http://repo1.maven.org/maven2/org/codehaus/jettison/jettison/1.3.2/jettison-1.3.2.jar

    I just updated the documentation to mention this.

    Thanx for reporting this,
    cheers,
    Martin

    On 11/20/2012 06:02 PM, Raja Patil wrote:
    Hello,

    I am trying to configure Tomcat 7 cluster session replication and load
    balancing.
    This is my first project as far as Web development is concerned so have
    no experience with Tomcat.

    What I have done is as Follows.

    Installed CouchBase server 1.8.x by using community deb file on KUbuntu
    10.04 64bit.
    Installed Tomcat 7.0.32 .
    Application for testing is default example application in webapps dir.
    Tested vanila tomcat working by running the example application and
    confirmed that it works.

    Created bucket "tomcat" in couch base console . (see screenshot)

    in example folder created META-INF/context.xml as follows

    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="http://localhost:11211/pools"
    username="tomcat"
    password="rsp123"
    sticky="false"
    sessionBackupAsync="false"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

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

    </Context>

    copied necessary jars to lib folder
    started couchbase server but a message appeared "Failed to start
    couchbase-server"
    but I could connect Administrative console on localhost:8091 and check
    bucket so I continued
    but I would like to explore why this message is being shown. (screenshot
    attached)

    started tomcat

    but it resulted in exception. The catalina.out file is as below.

    Can somebody help me out in getting it running ?

    Thanks and warm regards

    Nov 20, 2012 9:53:39 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-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
    Nov 20, 2012 9:53:40 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8180"]
    Nov 20, 2012 9:53:41 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["ajp-bio-8109"]
    Nov 20, 2012 9:53:41 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 3613 ms
    Nov 20, 2012 9:53:41 PM org.apache.catalina.core.StandardService
    startInternal
    INFO: Starting service Catalina
    Nov 20, 2012 9:53:41 PM org.apache.catalina.core.StandardEngine
    startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.32
    Nov 20, 2012 9:53:41 PM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory
    /home/rsp/ATC-1/webapps/host-manager
    Nov 20, 2012 9:53:42 PM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory /home/rsp/ATC-1/webapps/docs
    Nov 20, 2012 9:53:42 PM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory /home/rsp/ATC-1/webapps/ROOT
    Nov 20, 2012 9:53:42 PM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory
    /home/rsp/ATC-1/webapps/manager
    Nov 20, 2012 9:53:42 PM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory
    /home/rsp/ATC-1/webapps/examples
    Nov 20, 2012 9:53:43 PM
    de.javakaffee.web.msm.MemcachedSessionService startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition http://localhost:11211/pools, failover nodes null)
    Nov 20, 2012 9:53:43 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Error manager.start()
    org.apache.catalina.LifecycleException: Failed to start component
    [de.javakaffee.web.msm.MemcachedBackupSessionManager[/examples]]
    at
    org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at
    org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
    at
    org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1105)
    at
    org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1664)
    at
    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at
    java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
    Caused by: java.lang.NoClassDefFoundError:
    org/codehaus/jettison/json/JSONException
    at
    net.spy.memcached.vbucket.ConfigurationProviderHTTP.<init>(ConfigurationProviderHTTP.java:50)
    at
    net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:257)
    at
    net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:219)
    at
    net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:343)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createMemcachedClient(MemcachedSessionService.java:484)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:420)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:509)
    at
    org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 13 more
    Caused by: java.lang.ClassNotFoundException:
    org.codehaus.jettison.json.JSONException
    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)
    ... 21 more
    Nov 20, 2012 9:53:43 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Context [/examples] startup failed due to previous errors
    Nov 20, 2012 9:53:43 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8180"]
    Nov 20, 2012 9:53:43 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8109"]
    Nov 20, 2012 9:53:43 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2229 ms
    Nov 20, 2012 10:24:37 PM org.apache.catalina.core.StandardServer await
    INFO: A valid shutdown command was received via the shutdown port.
    Stopping the Server instance.
    Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol pause
    INFO: Pausing ProtocolHandler ["http-bio-8180"]
    Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol pause
    INFO: Pausing ProtocolHandler ["ajp-bio-8109"]
    Nov 20, 2012 10:24:37 PM org.apache.catalina.core.StandardService
    stopInternal
    INFO: Stopping service Catalina
    Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol stop
    INFO: Stopping ProtocolHandler ["http-bio-8180"]
    Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol stop
    INFO: Stopping ProtocolHandler ["ajp-bio-8109"]
    Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol destroy
    INFO: Destroying ProtocolHandler ["http-bio-8180"]
    Nov 20, 2012 10:24:37 PM org.apache.coyote.AbstractProtocol destroy
    INFO: Destroying ProtocolHandler ["ajp-bio-8109"]
    Nov 20, 2012 10:24:37 PM
    de.javakaffee.web.msm.MemcachedSessionService shutdown
    INFO: Stopping services.
    Nov 20, 2012 10:24:37 PM org.apache.catalina.util.LifecycleBase destroy
    WARNING: Calling stop() on failed component [{0}] to trigger
    clean-up did not complete.
    org.apache.catalina.LifecycleException: Failed to stop component
    [de.javakaffee.web.msm.MemcachedBackupSessionManager[/examples]]
    at
    org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
    at
    org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:272)
    at
    org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1214)
    at
    org.apache.catalina.core.StandardContext.destroyInternal(StandardContext.java:5590)
    at
    org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304)
    at
    org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
    at
    org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1234)
    at
    org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304)
    at
    org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
    at
    org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1234)
    at
    org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304)
    at
    org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:593)
    at
    org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304)
    at
    org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:822)
    at
    org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:304)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:752)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:713)
    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:322)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
    Caused by: java.lang.NullPointerException
    at
    de.javakaffee.web.msm.MemcachedSessionService.shutdown(MemcachedSessionService.java:387)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.stopInternal(MemcachedBackupSessionManager.java:527)
    at
    org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    ... 22 more


    <https://lh4.googleusercontent.com/-vaU4pXNYxQQ/UKuy0kfCOCI/AAAAAAAAAAM/XUku1g2YVAs/s1600/tomcat-bucket.jpeg><https://lh5.googleusercontent.com/-QTRkZ4K17bo/UKu1YKSd0XI/AAAAAAAAAAc/DfZubcEigUg/s1600/start-couchbase.jpeg>
  • Raja Patil at Nov 21, 2012 at 7:11 am
    Thanks Martin,

    for membase buckets you also need to have jettison.jar available in
    CATALINA_HOME/lib/.

    http://repo1.maven.org/maven2/org/codehaus/jettison/jettison/1.3.2/jettison-1.3.2.jar

    I did that and tried. Still Following exception was raised.
    INFO: Deploying web application directory /home/rsp/ATC-1/webapps/examples
    Nov 21, 2012 12:23:58 PM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured nodes
    definition http://localhost:11211/pools, failover nodes null)
    Nov 21, 2012 12:23:58 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Error manager.start()
    org.apache.catalina.LifecycleException: Failed to start component
    [de.javakaffee.web.msm.MemcachedBackupSessionManager[/examples]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at
    org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1105)
    at
    org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1664)
    at
    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
    Caused by: java.lang.NoClassDefFoundError:
    org/apache/commons/codec/binary/Base64
    at
    net.spy.memcached.vbucket.ConfigurationProviderHTTP.buildAuthHeader(ConfigurationProviderHTTP.java:299)
    at
    net.spy.memcached.vbucket.ConfigurationProviderHTTP.urlConnBuilder(ConfigurationProviderHTTP.java:238)
    at
    net.spy.memcached.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:105)
    at
    net.spy.memcached.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:87)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:258)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:219)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:343)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createMemcachedClient(MemcachedSessionService.java:484)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:420)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:509)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 13 more
    Caused by: java.lang.ClassNotFoundException:
    org.apache.commons.codec.binary.Base64
    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)
    ... 24 more
    Nov 21, 2012 12:23:58 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Context [/examples] startup failed due to previous errors
    Nov 21, 2012 12:23:58 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8180"]
    Nov 21, 2012 12:23:58 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8109"]
    Nov 21, 2012 12:23:58 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 6944 ms
    Then I tried with both commons-codec-1.5.jar and commons-codec-1.6.jar
    still No success.

    Here is the log.

    Nov 21, 2012 12:31:39 PM org.apache.catalina.startup.HostConfig
    deployDirectory
    INFO: Deploying web application directory /home/rsp/ATC-1/webapps/examples
    Nov 21, 2012 12:31:40 PM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured nodes
    definition http://localhost:11211/pools, failover nodes null)


    *********************************************************************************

    Here the process becomes non responsive. I waited for about 5 mins then I
    fired
    sudo /etc/init.d/couchbaseserver stop then following log continued and I
    could shutdown
    tomcat instance. Othewsie tomcat server cannot be shutdown.


    *********************************************************************************

    2012-11-21 12:32:18.368 WARN
    net.spy.memcached.vbucket.ConfigurationProviderHTTP: Provided URI
    http://localhost:11211/pools has an unparsable response...skipping
    java.text.ParseException: Can not read base
    ERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
    at
    net.spy.memcached.vbucket.config.ConfigurationParserJSON.parseBase(ConfigurationParserJSON.java:27)
    at
    net.spy.memcached.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:111)
    at
    net.spy.memcached.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:87)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:258)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:219)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:343)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createMemcachedClient(MemcachedSessionService.java:484)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:420)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:509)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
    org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1105)
    at
    org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1664)
    at
    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
    Nov 21, 2012 12:32:18 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Error manager.start()
    org.apache.catalina.LifecycleException: Failed to start component
    [de.javakaffee.web.msm.MemcachedBackupSessionManager[/examples]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at
    org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1105)
    at
    org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1664)
    at
    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
    Caused by: java.lang.RuntimeException: Could not create memcached client
    at
    de.javakaffee.web.msm.MemcachedSessionService.createMemcachedClient(MemcachedSessionService.java:488)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:420)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:509)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 13 more
    Caused by: java.lang.NullPointerException
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:259)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:219)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:343)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createMemcachedClient(MemcachedSessionService.java:484)
    ... 16 more
    Nov 21, 2012 12:32:18 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Context [/examples] startup failed due to previous errors
    Nov 21, 2012 12:32:18 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8180"]
    Nov 21, 2012 12:32:18 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8109"]
    Nov 21, 2012 12:32:18 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 39556 ms
    I just updated the documentation to mention this.
    Thanks for this but I think some more document and code updation is
    required.
    I will continue to test the couchbase server session replication config and
    at the
    end I will submit a detailled howto to help others as my contribution.

    Thanks and warm regards.

    Raja Patil
  • Raja Patil at Nov 21, 2012 at 7:47 am
    Hi Martin,

    Here is some update

    added commons-codec-1.5.jar to lib folder and did Two changes to my
    context.xml as follows

    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="http://localhost:8091/pools"
    username="tomcat"
    password="rsp123"
    sticky="false"
    sessionBackupAsync="false"
    memcachedProtocol="binary"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

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

    </Context>
    Tried to run tomcat and surprised to see some jboss references in catalina
    out.
    but good thing is that process do not suspend and I could shutdown tomcat
    server.
    I think the usage of port 8091 instead of 11211 has solved the tomcat
    suspend issue.

    here is the latest catalina.out.

    Thanks and warm regards.

    raja patil


    INFO: Deploying web application directory /home/rsp/ATC-1/webapps/examples
    Nov 21, 2012 1:01:24 PM de.javakaffee.web.msm.MemcachedSessionService
    startInternal
    INFO: MemcachedSessionService starts initialization... (configured nodes
    definition http://localhost:8091/pools, failover nodes null)
    2012-11-21 13:01:24.818 INFO net.spy.memcached.MemcachedConnection: Added
    {QA sa=/127.0.0.1:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null,
    toWrite=0, interested=0} to connect queue
    Nov 21, 2012 1:01:24 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Error manager.start()
    org.apache.catalina.LifecycleException: Failed to start component
    [de.javakaffee.web.msm.MemcachedBackupSessionManager[/examples]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at
    org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1105)
    at
    org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1664)
    at
    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
    Caused by: java.lang.NoClassDefFoundError:
    org/jboss/netty/channel/ChannelPipelineFactory
    at
    net.spy.memcached.vbucket.ConfigurationProviderHTTP.subscribe(ConfigurationProviderHTTP.java:180)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:317)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:219)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:343)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createMemcachedClient(MemcachedSessionService.java:484)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:420)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:509)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 13 more
    Caused by: java.lang.ClassNotFoundException:
    org.jboss.netty.channel.ChannelPipelineFactory
    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)
    ... 21 more
    Nov 21, 2012 1:01:24 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Context [/examples] startup failed due to previous errors
    Nov 21, 2012 1:01:24 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8180"]
    Nov 21, 2012 1:01:24 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8109"]
    Nov 21, 2012 1:01:24 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1829 ms
  • Martin Grotzke at Nov 21, 2012 at 7:52 am
    This configuration looks good, I didn't spot this in the first place.

    That you're seeing s.th. from jboss is not an issue here, netty is just
    a (really good) networking library :-)

    So is msm now working as expected?

    Cheers,
    Martin

    On 11/21/2012 08:47 AM, Raja Patil wrote:
    Hi Martin,

    Here is some update

    added commons-codec-1.5.jar to lib folder and did Two changes to my
    context.xml as follows

    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
    <Manager
    className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    memcachedNodes="http://localhost:8091/pools"
    username="tomcat"
    password="rsp123"
    sticky="false"
    sessionBackupAsync="false"
    memcachedProtocol="binary"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"

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

    </Context>



    Tried to run tomcat and surprised to see some jboss references in
    catalina out.
    but good thing is that process do not suspend and I could shutdown
    tomcat server.
    I think the usage of port 8091 instead of 11211 has solved the tomcat
    suspend issue.

    here is the latest catalina.out.

    Thanks and warm regards.

    raja patil


    INFO: Deploying web application directory
    /home/rsp/ATC-1/webapps/examples
    Nov 21, 2012 1:01:24 PM
    de.javakaffee.web.msm.MemcachedSessionService startInternal
    INFO: MemcachedSessionService starts initialization... (configured
    nodes definition http://localhost:8091/pools, failover nodes null)
    2012-11-21 13:01:24.818 INFO net.spy.memcached.MemcachedConnection:
    Added {QA sa=/127.0.0.1:11210, #Rops=0, #Wops=0, #iq=0, topRop=null,
    topWop=null, toWrite=0, interested=0} to connect queue
    Nov 21, 2012 1:01:24 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Error manager.start()
    org.apache.catalina.LifecycleException: Failed to start component
    [de.javakaffee.web.msm.MemcachedBackupSessionManager[/examples]]
    at
    org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at
    org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
    at
    org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at
    org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1105)
    at
    org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1664)
    at
    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at
    java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
    Caused by: java.lang.NoClassDefFoundError:
    org/jboss/netty/channel/ChannelPipelineFactory
    at
    net.spy.memcached.vbucket.ConfigurationProviderHTTP.subscribe(ConfigurationProviderHTTP.java:180)
    at
    net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:317)
    at
    net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:219)
    at
    net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:343)
    at
    de.javakaffee.web.msm.MemcachedSessionService.createMemcachedClient(MemcachedSessionService.java:484)
    at
    de.javakaffee.web.msm.MemcachedSessionService.startInternal(MemcachedSessionService.java:420)
    at
    de.javakaffee.web.msm.MemcachedBackupSessionManager.startInternal(MemcachedBackupSessionManager.java:509)
    at
    org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 13 more
    Caused by: java.lang.ClassNotFoundException:
    org.jboss.netty.channel.ChannelPipelineFactory
    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)
    ... 21 more
    Nov 21, 2012 1:01:24 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Context [/examples] startup failed due to previous errors
    Nov 21, 2012 1:01:24 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8180"]
    Nov 21, 2012 1:01:24 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8109"]
    Nov 21, 2012 1:01:24 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1829 ms

    --
    inoio gmbh - http://inoio.de
    Breitenfelder Str. 13c, 20251 Hamburg
    Amtsgericht Hamburg, HRB 123031
    Geschäftsführer: Dennis Brakhane, Martin Grotzke, Ole Langbehn
  • Raja Patil at Nov 21, 2012 at 10:39 am
    Thanks Martin,

    This configuration looks good, I didn't spot this in the first place.
    That you're seeing s.th. from jboss is not an issue here, netty is just
    a (really good) networking library :-)

    So is msm now working as expected?
    It didn't worked when I posted my last message but* it works after I did
    following.*

    The link in Documentation for "or
    memcached-session-manager-tc7-${version}.jar<http://repo1.maven.org/maven2/de/javakaffee/msm/memcached-session-manager-tc6/>for tomcat7. " points to
    http://repo1.maven.org/maven2/de/javakaffee/msm/memcached-session-manager-tc6/
    and earlier I blindly downloaded the jar in "1.6.3" and placed in lib. But
    when it was not working I examined the lib dir very closely and downloaded
    correct jar from repository and placed in lib dir.

    Still it was not working by looking at kryo related exceptions exceptions
    I started looking at kryo-serilizers-xx.jar . Earlier since link in
    documentation was pointing to
    "http://repo1.maven.org/maven2/de/javakaffee/kryo-serializers/" I checked
    the latest date and downloaded kryo-serilizers.20.jar which was giving
    currency, date serilizers issues. Finally I downloaded
    kryo-serilizers.10.jar and placed in lib.

    Similarly I also placed commons-codec-1.5.jar and netty-3.2.5.Final.jar in
    lib. Then it started working.
    However I would like to whether both the jars are appropriate or something
    else need to be used in stability point of view.

    *I am putting here all the things in details so that the documentation page
    be updated accordingly which will help others.*

    As of now it has just started working and I thought that I should put
    update but I saw your post so I have posted in reply to your message. Still
    some tests are pending I will send you a detail how to on this, right from
    installing couchbase server, configuring it and configuring MSM, so that
    you can improve it and place it at appropriate place. I will also include a
    example application I have used its just a jsp file storing counter as
    session attribute and incrementing it as page is revisited in same session
    which I found on net.

    Thanks and warm regards.

    Raja Patil.
  • Martin Grotzke at Nov 21, 2012 at 8:49 pm
    Hi Raja,

    thanx again for reporting this, I updated the docs accordingly.
    Some comments inline...
    On 11/21/2012 11:39 AM, Raja Patil wrote:
    Still it was not working by looking at kryo related exceptions
    exceptions I started looking at kryo-serilizers-xx.jar . Earlier since
    link in documentation was pointing to
    "http://repo1.maven.org/maven2/de/javakaffee/kryo-serializers/" I
    checked the latest date and downloaded kryo-serilizers.20.jar which was
    giving currency, date serilizers issues. Finally I downloaded
    kryo-serilizers.10.jar and placed in lib.
    kryo-serializers-0.20 is for kryo2 and therefore cannot be used with
    kryo 1. Porting msm-kryo-serializer to kryo2 is still on my list (there
    are still issues with cglib support that need to be solved).

    Similarly I also placed commons-codec-1.5.jar and netty-3.2.5.Final.jar
    in lib. Then it started working.
    However I would like to whether both the jars are appropriate or
    something else need to be used in stability point of view.
    Not sure why they need those jars for talking to the REST/json interface
    of membase. Perhaps it's a good idea to create single, shaded jars for
    msm that bring tc6/tc7 + membase support. This would make it more
    convenient for msm users.

    /*I am putting here all the things in details so that the documentation
    page be updated accordingly which will help others.*/

    As of now it has just started working and I thought that I should put
    update but I saw your post so I have posted in reply to your message.
    Still some tests are pending I will send you a detail how to on this,
    right from installing couchbase server, configuring it and configuring
    MSM, so that you can improve it and place it at appropriate place.
    Great, looking forward to it!
    I
    will also include a example application I have used its just a jsp file
    storing counter as session attribute and incrementing it as page is
    revisited in same session which I found on net.
    Btw, there's also the https://github.com/magro/msm-sample-webapp/ repo
    with several branches. Unfortunately, it's not that easy to keep it
    up2date, why I already thought about putting samples into the msm repo
    directly. The only issue is the limited time, but I'm always looking for
    volunteers / contributors... :-)

    Cheers,
    Martin

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmemcached-session-manager @
categoriesmemcached
postedNov 20, '12 at 6:49p
activeNov 21, '12 at 8:49p
posts7
users2
websitememcached.org

2 users in discussion

Raja Patil: 4 posts Martin Grotzke: 3 posts

People

Translate

site design / logo © 2022 Grokbase