Unable to run elasticsearch 7.2 with weblogic 12c

java.lang.IncompatibleClassChangeError: Implementing class

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:763)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at weblogic.utils.classloaders.GenericClassLoader.defineClassInternal(GenericClassLoader.java:1113)

at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:1046)

at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1038)

at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)

at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)

at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)

at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496)

at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:473)

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:763)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at weblogic.utils.classloaders.GenericClassLoader.defineClassInternal

Welcome.

What do you mean by "running elasticsearch with weblogic"?
Elasticsearch is a server which runs on its own. What are you trying to do exactly?

Hi I have a search functionality in my web application which is deployed on application weblogic server container.
I have deployed all the elasticsearch libraries in the weblogic domain/lib folder along with other application shared libraries.
Elastic search server is also running separately.

When i search something, the easy search client is not able to load the elastic search class definitions used in my ejb client.

at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:1046)

at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1038)

at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)

at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)

at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)

at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496)

at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:473)

at org.elasticsearch.search.aggregations.bucket.range.DateRangeAggregationBuilder.<clinit>(DateRangeAggregationBuilder.java:45)

at org.elasticsearch.search.aggregations.AggregationBuilders.dateRange(AggregationBuilders.java:301)

at com.newgen.elasticsearch.facet.FacetBuilder.buildFacet(FacetBuilder.java:206)

at com.newgen.omni.jts.txn.docdb.NGOEasySearch.execute(NGOEasySearch.java:244)

Which Elasticsearch client are you using?

Hi ,

We have written our own java client which invokes various elasticsearch APIs like Query builder , DateRangeAgggregationBuilder.

The same client and elasticsearch APIs work when deployed on Jboss EAP 7.2 server. But it is either giving class cast exceptions or incompatible class change errors when deployed in weblogic and websphere application servers using jdk 8.

I don't have any idea to be honest.
Was your project compiled with JDK8?

No we have other dependencies also on our App server which require a compilation with java 7. However the runtime is java 8.

NoClassDefFoundError is faced for DateRangeAggregationBuilder class when invoked at runtime.

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