I am trying to implement the Elasticsearch REST 6.6.1client in RedHat Fuse

I am trying to implement the Elasticsearch REST 6.6.1 client in RedHat Fuse and I believe an old jar is being pulled in somewhere. This class does not exist in the elasticsearch-6.6.1.jar. Any ideas?

java.lang.NoClassDefFoundError: org/elasticsearch/common/xcontent/ToXContentFragment
at java.lang.ClassLoader.defineClass1(Native Method)[:1.8.0_161]
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)[:1.8.0_161]
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2318)
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1524)

That class can be found in elasticsearch-x-content-6.6.1.jar

How are you pulling in the Rest client? Are you using a dependency manager?

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