title: how to solve java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy in storm
body: <p>How can i solve </p>
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
    at
    org.apache.curator.ensemble.fixed.FixedEnsembleProvider.(FixedEnsembleProvider.java:39)
    at org.apache.curator.framework.</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy</p>
  </blockquote>
  
  <p>in storm-kafka integration.</p>
  
  <p>I am using:</p>
  
  <ul>
  <li><p>kafka_2.9.2-0.8.1.1</p></li>
  <li><p>Zookeeper - 3.4.6</p></li>
  <li><p>Storm - 0.9.3</p></li>
  </ul>
  
  <p>updated</p>
  
  <p>pom.xml</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.scala-lang&lt;/groupId&gt;
          &lt;artifactId&gt;scala-reflect&lt;/artifactId&gt;
          &lt;version&gt;2.10.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.storm&lt;/groupId&gt;
          &lt;artifactId&gt;storm-kafka&lt;/artifactId&gt;
          &lt;version&gt;0.9.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.kafka&lt;/groupId&gt;
          &lt;artifactId&gt;kafka_2.9.2&lt;/artifactId&gt;
          &lt;version&gt;0.8.1.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.zookeeper&lt;/groupId&gt;
          &lt;artifactId&gt;zookeeper&lt;/artifactId&gt;
          &lt;version&gt;3.4.6&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.sun.jmx&lt;/groupId&gt;
                  &lt;artifactId&gt;jmxri&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.sun.jdmk&lt;/groupId&gt;
                  &lt;artifactId&gt;jmxtools&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;javax.jms&lt;/groupId&gt;
                  &lt;artifactId&gt;jms&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.storm&lt;/groupId&gt;
          &lt;artifactId&gt;storm-core&lt;/artifactId&gt;
          &lt;version&gt;0.9.3&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;redis.clients&lt;/groupId&gt;
          &lt;artifactId&gt;jedis&lt;/artifactId&gt;
          &lt;version&gt;2.6.0&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>