Hi,
Box: OpenSearchServer v1.5.14 - build d0d167ef10 on Ubuntu.
I'm trying to retrieve the autocomplete list through the API as manual say but there is no way it works, the error below.
The url : http://localhost:8080/services/rest/index/PH/autocompletion/autocomplete?prefix=tb
Also I created an user called administrator which is admin user and also can monitor and the url http://localhost:8080/services/rest/index/PH/autocompletion/autocomplete?prefix=tb&login=administrator&key=e2299b1a8fcf2411e01642fcb71affb0
Neither: curl -XGET http://localhost:8080/services/rest/index/PH/autocompletion/autocomplete?prefix=tb&login=administrator&key=e2299b1a8fcf2411e01642fcb71affb0
What do I miss? Thanks in advance
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.base/java.lang.Thread.run(Thread.java:834)
root cause
java.lang.NoClassDefFoundError: javax/xml/ws/WebServiceContext org.apache.cxf.jaxws.context.WebServiceContextResourceResolver.resolve(WebServiceContextResourceResolver.java:60) org.apache.cxf.resource.DefaultResourceManager.findResource(DefaultResourceManager.java:113) org.apache.cxf.resource.DefaultResourceManager.resolveResource(DefaultResourceManager.java:58) org.apache.cxf.transport.servlet.AbstractHTTPServlet.getResourceAsStream(AbstractHTTPServlet.java:145) org.apache.cxf.transport.servlet.AbstractHTTPServlet.finalizeServletInit(AbstractHTTPServlet.java:120) org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:89) org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.init(CXFNonSpringJaxrsServlet.java:91) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.base/java.lang.Thread.run(Thread.java:834)
Hi there,
I general, REST API v2 commands raise me the previous exception
I tested the API v1 and works well
Any idea? Also I read here that version 2.0 will release soon, is there a release date?
Thanks in advanced
Upgrade to v1.6 and REST API v2 works ok.
Log in to post a comment.
Hi,
Box: OpenSearchServer v1.5.14 - build d0d167ef10 on Ubuntu.
I'm trying to retrieve the autocomplete list through the API as manual say but there is no way it works, the error below.
The url :
http://localhost:8080/services/rest/index/PH/autocompletion/autocomplete?prefix=tb
Also I created an user called administrator which is admin user and also can monitor and the url
http://localhost:8080/services/rest/index/PH/autocompletion/autocomplete?prefix=tb&login=administrator&key=e2299b1a8fcf2411e01642fcb71affb0
Neither:
curl -XGET http://localhost:8080/services/rest/index/PH/autocompletion/autocomplete?prefix=tb&login=administrator&key=e2299b1a8fcf2411e01642fcb71affb0
What do I miss?
Thanks in advance
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:442)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1082)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:623)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.base/java.lang.Thread.run(Thread.java:834)
root cause
Hi there,
I general, REST API v2 commands raise me the previous exception
I tested the API v1 and works well
Any idea? Also I read here that version 2.0 will release soon, is there a release date?
Thanks in advanced
Hi,
Upgrade to v1.6 and REST API v2 works ok.