# NoClassDefFoundError issue when use PreBuiltTransportClient

**URL:** <https://discuss.elastic.co/t/noclassdeffounderror-issue-when-use-prebuilttransportclient/71319>\
**Category:** Elasticsearch\
**Created:** [January 12, 2017, 5:59am UTC](https://discuss.elastic.co/t/noclassdeffounderror-issue-when-use-prebuilttransportclient/71319 "2017-01-12T05:59:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmazoneWebService](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@AmazoneWebService](https://discuss.elastic.co/u/AmazoneWebService)\
**Post date:** [January 12, 2017, 5:59am UTC](https://discuss.elastic.co/t/noclassdeffounderror-issue-when-use-prebuilttransportclient/71319/1 "2017-01-12T05:59:20Z")

</div>

When running PreBuiltTransportClient in ES 5.1 environment, the following error occurs.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/e/ecf3d83f23ab666165bb46ebf6b8542e511f04fc.png)

it is my pom.xml  
I deleted the 2.3 version, and registered the 5.1 version of the transport.  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/2/2f4f3c5deed763ca96e756c0b0ed0d9521f773e3.png)

![](https://us1.discourse-cdn.com/elastic/original/2X/8/824d0a5518f463e582664036d81b24f759a2a537.png)

and i changed the log4j  
version 2.4.1 to 2.7.

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [January 12, 2017, 9:20am UTC](https://discuss.elastic.co/t/noclassdeffounderror-issue-when-use-prebuilttransportclient/71319/2 "2017-01-12T09:20:00Z")

</div>

Does `maven dependency:tree` show the netty 3 plugin included with the  
transport client dependency? It should....

---

<div class="post-metadata">

**Author:** ![AmazoneWebService](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@AmazoneWebService](https://discuss.elastic.co/u/AmazoneWebService)\
**Post date:** [January 12, 2017, 9:29am UTC](https://discuss.elastic.co/t/noclassdeffounderror-issue-when-use-prebuilttransportclient/71319/3 "2017-01-12T09:29:18Z")

</div>

Transport has both netty 3.0 and 4.0.  
However, not recognize netty3plugin, so i added the following transport-netty3-client dependency.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/e/e15fd8412e6289ba07cf995ee3935428b858851c.png)  
But it did not work.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 9, 2017, 9:29am UTC](https://discuss.elastic.co/t/noclassdeffounderror-issue-when-use-prebuilttransportclient/71319/4 "2017-02-09T09:29:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
