I upgraded Elastic search version to 7.8.0. When I call ElasticSearchAPI I faced with "Caused By: java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder" but when I check this file in jar I can see. Does anybody faced with such an issue could you please help me?
Could share the stack trace of the error and a snippet of the code you are trying to run? Those errors mean most of the time some issues with your dependencies.
"Root cause of ServletException.
org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.search.aggregations.bucket.geogrid.GeoHashGridAggregationBuilder"
Yes, you are right if you set properly the repository. I tried myself creating a small project and I did not have any issues, so not sure I can help much more there.
My suspicion is that the issue is related to how dependencies are treated in the framework you are using and not elasticsearch.
@Ignacio_Vera Thank you for your response. I am trying to use this version with weblogic server can the problem be related to it? Should I add anything to pom.xml for it?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.