elasticsearch-dataformat icon indicating copy to clipboard operation
elasticsearch-dataformat copied to clipboard

getting java.lang.NoClassDefFoundError: org/elasticsearch/action/ActionResponse

Open Moshik177 opened this issue 8 years ago • 2 comments

Hi ,

I'm trying to use your code as template but i am getting a lot of class def found exception like the example that i wrote in the title on this line: runner = new ElasticsearchClusterRunner(); , if i use the dependency: <groupId>org.apache.servicemix.bundles</groupId> <artifactId>org.apache.servicemix.bundles.elasticsearch</artifactId> 2.4.0_1 i am getting the exception java.lang.NoClassDefFoundError: org/elasticsearch/node/NodeValidationException what you suggest to solve this issue?

Thanks, Moshik

Moshik177 avatar Apr 20 '17 09:04 Moshik177

Elasticsearch does not keep Java API compatibility at each versions. So, you need to use a proper elasticsearch version.

marevol avatar Apr 20 '17 11:04 marevol

Hi , I'm using the latest version of ES (5.3), when i copy the code with the pom to other place i am getting this errors

Moshik177 avatar Apr 20 '17 11:04 Moshik177