title: Caused by: java.lang.ClassNotFoundException: org.elasticsearch.transport.Netty3Plugin
body: <p>I'm using Spring Boot 2.0.3 Release and i have problem while instantiating <code>org.elasticsearch.client.Client</code>. My code:</p>
  
  <pre><code>Client client = new PreBuiltTransportClient(Settings.builder()
                  .put("cluster.name", clustername)
                  .build())
                  .addTransportAddress(
  new InetSocketTransportAddress(InetAddress.getByName(host), port)
  );
  </code></pre>
  
  <p>This code give me the error: </p>
  
  <pre><code>Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/transport/Netty3Plugin
  at org.elasticsearch.transport.client.PreBuiltTransportClient.&lt;clinit&gt;(PreBuiltTransportClient.java:91) ~[transport-5.6.10.jar:5.6.10]
  at kz.icode.idmatrix.config.ElasticsearchConfiguration.client(ElasticsearchConfiguration.java:56) ~[classes/:na]
  at kz.icode.idmatrix.config.ElasticsearchConfiguration$$EnhancerBySpringCGLIB$$7e53ae93.CGLIB$client$0(&lt;generated&gt;) ~[classes/:na]
  at kz.icode.idmatrix.config.ElasticsearchConfiguration$$EnhancerBySpringCGLIB$$7e53ae93$$FastClassBySpringCGLIB$$fef36179.invoke(&lt;generated&gt;) ~[classes/:na]
  at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-5.0.7.RELEASE.jar:5.0.7.RELEASE]
  at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:361) ~[spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE]
  at kz.icode.idmatrix.config.ElasticsearchConfiguration$$EnhancerBySpringCGLIB$$7e53ae93.client(&lt;generated&gt;) ~[classes/:na]
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171]
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_171]
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171]
  at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171]
  at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
  ... 99 common frames omitted
  </code></pre>
  
  <p>I use <code>org.elasticsearch:elasticsearch:5.6.10</code> and <code>org.elasticsearch.client:client:5.6.10</code>. </p>