I upgraded elasticsearch to 7.8.0 version but I got "java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.http.netty4.Netty4HttpServerTransport" error

I upgraded elasticsearch to 7.8.0 version

my dependencies like

`  <dependency>
            <groupId>org.elasticsearch</groupId>
            <artifactId>elasticsearch</artifactId>
            <version>7.8.0</version>
        </dependency>
        <dependency>
            <groupId>org.elasticsearch</groupId>
            <artifactId>elasticsearch-core</artifactId>
            <version>7.8.0</version>
        </dependency>
        <dependency>
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>x-pack-transport</artifactId>
            <version>7.8.0</version>
        </dependency>
       <dependency>
            <groupId>org.apache.lucene</groupId>
            <artifactId>lucene-core</artifactId>
            <version>8.5.1</version>
        </dependency> `

Could you please help me how can I solve this problem.

Welcome!

Are you using spring by any chance?

I am using enterprise java beans with weblogic

Are you using the transport client or the rest client? You should use the rest client.

I am using x-pack-transport I am quite new in Elastic search. Actually I just upgraded from 7.6.2 version . We cannot switch to rest client right now. Is there any possibility to solve this in this manner?

What is your full pom.xml? Could your reproduce the problem with a sample project?

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