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
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)
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.
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.