--- It is happening when an trying to build a custom grant jar for mobile grant access in wso2.
I have received no problem in building the maven jar and also worked on sample it is also working fine.
But, When I am trying to restart wso2 its throwing the error message as below..
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/index/query/QueryBuilder
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.wso2.carbon.identity.oauth.config.OAuthServerConfiguration.getSupportedGrantTypes(OAuthServerConfiguration.java:614)
at org.wso2.carbon.identity.oauth.OAuthAdminService.getAllowedGrantTypes(OAuthAdminService.java:1091)
... 154 more
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.index.query.QueryBuilder cannot be found by custom_grant_1.1.2_1.0.0
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 158 more
[2019-07-18 21:15:39,856] ERROR - ApplicationDispatcher Servlet.service() for servlet bridgeservlet threw exception
java.lang.NullPointerException
at org.apache.jsp.oauth.edit_jsp._jspService(edit_jsp.java:1076)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
-- Elastic Java Client jar throwing this error when I load from wso2
the jar is placed is wso2/2.6.0/repository/components/lib - to support custom grant mobile support over cross cluster search!
I have a sample with elasticsearch java client its working absolutely fine. But its throwing error only when I tried using the maven generated jar in the wso2 libraries
please help.
am using elastic search 6.5.4
java 1.8
wso2 2.6.0
Yes I do.. It is working fine when I have tested on eclipse ie...,, elastic search java client sample.. But when I placed this jar in wso2 components lib.. its throwing error while restarting.,..
The elastic search java client sample is working fine with same dependencies. But, its not working when I placed it in the wso2 components/lib ... its throwing error like that in starting the server?
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.