title: java.lang.NoClassDefFoundError: io/netty/handler/ssl/SslContextBuilder
body: <p>I am trying to implement <a href="https://github.com/relayrides/pushy" rel="nofollow noreferrer">relayrides/pushy</a>, but am getting the following runtime error:</p>
  <blockquote>
  <pre><code>Jun 28, 2017 2:06:58 PM com.turo.pushy.apns.SslUtil getSslProvider
  INFO: Native SSL provider not available; will use JDK SSL provider.
  Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: io/netty/handler/ssl/SslContextBuilder
    at com.turo.pushy.apns.ApnsClientBuilder.build(ApnsClientBuilder.java:396)
    at com.jobs.spring.service.NotificationServiceImpl.sendIOSPushNotification(NotificationServiceImpl.java:122)
  
    Caused by: java.lang.ClassNotFoundException: io.netty.handler.ssl.SslContextBuilder
  </code></pre>
  </blockquote>
  <p><strong>pom.xml</strong></p>
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
          &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
          &lt;version&gt;4.5.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- Push Notifications --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.turo&lt;/groupId&gt;
          &lt;artifactId&gt;pushy&lt;/artifactId&gt;
          &lt;version&gt;0.10&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.netty&lt;/groupId&gt;
          &lt;artifactId&gt;netty-tcnative&lt;/artifactId&gt;
          &lt;version&gt;2.0.5.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.netty&lt;/groupId&gt;
          &lt;artifactId&gt;netty-handler&lt;/artifactId&gt;
          &lt;version&gt;4.0.27.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.ning&lt;/groupId&gt;
          &lt;artifactId&gt;async-http-client&lt;/artifactId&gt;
          &lt;version&gt;1.9.40&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
          &lt;artifactId&gt;gson&lt;/artifactId&gt;
          &lt;version&gt;2.8.1&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  <p><strong>java</strong></p>
  <pre><code>    final ApnsClient apnsClient = new ApnsClientBuilder()
              .setClientCredentials(new File(PATH_TO_P12_CERT), CERT_PASSWORD )
              .build();
  </code></pre>
  <p>I am guessing my mvn dependencies are incorrect. Any help appreciated.</p>
  <p><a href="https://i.stack.imgur.com/GowpR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GowpR.png" alt="enter image description here" /></a></p>
  <p><strong>UPDATE</strong></p>
  <p>I updated my dependencies to:</p>
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;com.turo&lt;/groupId&gt;
          &lt;artifactId&gt;pushy&lt;/artifactId&gt;
          &lt;version&gt;0.10&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.netty&lt;/groupId&gt;
          &lt;artifactId&gt;netty-all&lt;/artifactId&gt;
          &lt;version&gt;4.1.11.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.netty&lt;/groupId&gt;
          &lt;artifactId&gt;netty-tcnative&lt;/artifactId&gt;
          &lt;version&gt;2.0.1.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
          &lt;artifactId&gt;gson&lt;/artifactId&gt;
          &lt;version&gt;2.6&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  <p>But now get:</p>
  <blockquote>
  <pre><code>Jun 28, 2017 2:40:18 PM com.turo.pushy.apns.SslUtil getSslProvider
  INFO: Native SSL provider not available; will use JDK SSL provider.
  Exception in thread &quot;main&quot; java.lang.NoSuchMethodError: io.netty.bootstrap.Bootstrap.config()Lio/netty/bootstrap/BootstrapConfig;
    at com.turo.pushy.apns.ApnsClient.&lt;init&gt;(ApnsClient.java:172)
    at com.turo.pushy.apns.ApnsClientBuilder.build(ApnsClientBuilder.java:420)
    at com.jobs.spring.service.NotificationServiceImpl.sendIOSPushNotification(NotificationServiceImpl.java:121)
  </code></pre>
  </blockquote>