Hello everyone,
I
have encounter a very mind-blowing issue while trying to
create a REST API for a Geomesa-Accumulo datastore using
Jersey,
I am
using Accumulo 1.7.3 with Hadoop 2.2.0 with
geomesa-accumulo_2.11-1.3.5.
To
the best of my knowledge Hadoop requires Jersey 1.9 which
includes to the project dependencies.
I
would like to use Jersey 2.17+ but when I include is in my
project I get
java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder
which is expected(?) due to the fact that I have two Jersey version in the web libs.
When I remove the Jersey import, hoping to use the Jersey 1.9 already included by Hadoop I get
javax.servlet.ServletException: Servlet.init() for servlet Sensorthing-Servlet threw exception
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:748)
Please also find attached the pom.xml file that I use.
Any ideas or suggestions regarding how to set up my pox.xml file so that the project can work are more than welcomed.
Thank you very much for you time.
Best regards,
Maria.