Elasticsearch: ClassNotFoundException: org.jboss.netty.logging.InternalLoggerFactory

Created on 28 Jun 2017  ·  1Comment  ·  Source: elastic/elasticsearch

I am trying to follow the official Elasticsearch documentation for setting up a transport client,The code is simple as below:
TransportClient client = new PreBuiltTransportClient(Settings.EMPTY);
And the maven dependencies:
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>5.4.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.8.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.8.2</version>
</dependency>
The error :
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/netty/logging/InternalLoggerFactory at org.elasticsearch.transport.Netty3Plugin.<clinit>(Netty3Plugin.java:46)

Most helpful comment

Hi, I'm facing exactly the same issue.
How did you fix it?

Best regards,
Pietro

>All comments

Hi, I'm facing exactly the same issue.
How did you fix it?

Best regards,
Pietro

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rjernst picture rjernst  ·  3Comments

brwe picture brwe  ·  3Comments

DhairyashilBhosale picture DhairyashilBhosale  ·  3Comments

matthughes picture matthughes  ·  3Comments

clintongormley picture clintongormley  ·  3Comments