简体   繁体   English

如何使用Redis或Memcached配置tomcat6或7共享会话?

[英]How to use redis or memcached to configure tomcat6 or 7 sharing session?

I want to use redis or memcached to configure tomcat 6 or 7 sharing session, but I always configured failed. 我想使用redis或memcached来配置tomcat 6或7共享会话,但是我总是配置失败。 when I use memcached, it says:java.lang.VerifyError: class de.javakaffee.web.msm.MemcachedBackupSessionManager overrides final method init.()V, when I use redis, it says:java.lang.NoClassDefFoundError:org/apache/commons/pool/impl/GenericObjectPool$Config. 当我使用memcached时,它说:java.lang.VerifyError:class de.javakaffee.web.msm.MemcachedBackupSessionManager覆盖最终方法init。()V,当我使用Redis时,它说:java.lang.NoClassDefFoundError:org / apache / commons / pool / impl / GenericObjectPool $ Config。

Is there anyone who had configured this successfully? 是否有人成功配置了此功能? Please help me, show me your configuration file, thanks a lot! 请帮助我,告诉我您的配置文件,非常感谢!

java.lang.NoClassDefFoundError:org/apache/commons/pool/impl/GenericObjectPool$Config

That's a classpath issue; 那是一个类路径问题; do you have this dependency configured for apache commons? 您是否为Apache Commons配置了此依赖项?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM