title: Why Getting NoClassDefFound error for JedisConnection when using Spring Redis
body: <p>Hello when trying to use spring-redis i am getting </p>
  
  <pre><code>java.lang.NoClassDefFoundError: Could not initialize class org.springframework.data.redis.connection.jedis.JedisConnection
  </code></pre>
  
  <p>exception when doing any connection operation using redis. My config method goes like this </p>
  
  <pre><code> @Bean
  public RedisConnectionFactory jedisConnFactory() {
      JedisConnectionFactory jedisConnectionFactory = new JedisConnectionFactory();
  
      jedisConnectionFactory.setHostName("XXX.XX.XX.XXX");
  
      jedisConnectionFactory.setPort(6381);
      jedisConnectionFactory.setUsePool(true);
      jedisConnectionFactory.afterPropertiesSet();
      return jedisConnectionFactory;
  </code></pre>
  
  <p>Please suggest if anyone knows why i am getting this exception.</p>