Home  >  Forum  >  Spring
Post New Query

Caused by: java.lang.ClassNotFoundException: com.lambdaworks.redis.RedisException



Asked on January 27, 2017
I am using Redis with Spring. When I start server, error occurred.

Caused by: java.lang.ClassNotFoundException: com.lambdaworks.redis.RedisException
at java.net.URLClassLoader$1.run(URLClassLoader.java:372) ~[na:1.8.0]
at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[na:1.8.0]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0]
at java.net.URLClassLoader.findClass(URLClassLoader.java:360) ~[na:1.8.0]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[na:1.8.0]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0]



Replied on January 28, 2017
You are missing lettuce dependency. Configure it in your maven or gradle. If you are using maven then add following dependency.

<dependency>
     <groupId>biz.paluch.redis</groupId>
     <artifactId>lettuce</artifactId>
     <version>3.5.0.Final</version>
</dependency>   

If you are using spring-data-redis with version 1.7.6,  then lettuce should be  3.5.0.Final version.


Write Answer




©2019 concretepage.com | Privacy Policy | Contact Us