目前现状,jedis版本是2.4.2,没有引入common包
报错:
信息: Illegal access: this web application instance has been stopped already. Could not load redis.clients.jedis.exceptions.JedisDataException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1813) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1771) at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:63) at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819) at org.apache.commons.pool2.impl.GenericObjectPool.ensureMinIdle(GenericObjectPool.java:863) at org.apache.commons.pool2.impl.BaseGenericObjectPool$Evictor.run(BaseGenericObjectPool.java:1001) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) Exception in thread "commons-pool-EvictionTimer" java.lang.NoClassDefFoundError: redis/clients/jedis/exceptions/JedisDataException at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:63) at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:819) at org.apache.commons.pool2.impl.GenericObjectPool.ensureMinIdle(GenericObjectPool.java:863) at org.apache.commons.pool2.impl.BaseGenericObjectPool$Evictor.run(BaseGenericObjectPool.java:1001) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) Caused by: java.lang.ClassNotFoundException: redis.clients.jedis.exceptions.JedisDataException at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1928) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1771) ... 6 more
查了半天,说是jar包冲突
解决办法:
将jedisjar包改成2.9.0
加入如下代码:
<dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>${jedis.version}</version> <exclusions> <exclusion> <artifactId>commons-pool2</artifactId> <groupId>org.apache.commons</groupId> </exclusion> </exclusions> </dependency>
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-pool2</artifactId> <version>2.4.2</version> </dependency>
分析原因:
jedis包中引用了common pool2的jar包
相关推荐
jedis相关jar包:commons-pool2-2.3.jar、jedis-2.7.0.jar
jedis依赖jar包, jedis-2.7.0.jar
maven库使用最多的2.9.0 Jedis 和对应的common-pool2.jar
jedis jar包
jedis和对应的pool,jedis是2.7版 pool是2.3版,使用的时候 解压使用里面的jar包
jedis jar包 2.7.0 自己用 实测可用 分享给大家 。。。。
Jedis-java最新jar包
包含 commons-pool-1.6.jar jedis.jar两个jar包,亲测可用
含有java需要引用的Jedis五个依赖Jar NoSQL数据库的产生就是为了解决大规模数据集合多重数据种类带来的挑战,尤其是大数据应用难题,redis就是属于NoSQL数据库类型
(window)Redis安装包,Redis桌面Manager,Jedis驱动包
分享一下Redis的JAVA客户端,Jedis工具包
Redis Windows32位+64位安装包,Linux压缩包, Redis图形操作管理软件,Jedis
此Jar包为Jedis 2.9.0版(2016年7月22日发布) 支持Redis 3.0 (亲测有效) 使用方法: import redis.clients.jedis.Jedis; Jedis jedis = new Jedis("localhost"); jedis.set("foo", "bar"); String value = jedis...
jedis不同版本的架包,包括2.1.0,2.6.1,2.7.2着三个版本的架包
jedis jar包; 版本:2.0 2.1
redis连接池jar jedis+common
jedis的2.9jar包
jedis-2.7.2.jar 架包下载
最新版本redis java 客户端,jedis-3.0.2 jar包,支持Redis Streams。
jedis-2.6.2.jar最新的jedis包