hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18518) Remove jersey1* dependencies from project and jersey1* jars from lib dir
Date Fri, 18 Aug 2017 05:33:00 GMT

    [ https://issues.apache.org/jira/browse/HBASE-18518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16131743#comment-16131743

stack commented on HBASE-18518:

Hmm. So this makes the tests pass but when I run the REST server apart, I get the below:

Exception in thread "main" java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map;
  at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:331)
  at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:392)
  at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177)
  at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369)
  at javax.servlet.GenericServlet.init(GenericServlet.java:244)
  at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:640)
  at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:419)
  at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:875)
  at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:348)
  at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)
  at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
  at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
  at org.eclipse.jetty.server.Server.start(Server.java:405)
  at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
  at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
  at org.eclipse.jetty.server.Server.doStart(Server.java:372)
  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
  at org.apache.hadoop.hbase.rest.RESTServer.main(RESTServer.java:354)

This was because it was finding ApplicationHandler in the jersey1 coming in from hadoop. I
seemed to have it 'fixed' in my patch but merging it and yours doesn't seem to get this...
Let me look at it.

I'll leave the patch in because it at least makes the REST tests pass again.

> Remove jersey1* dependencies from project and jersey1* jars from lib dir
> ------------------------------------------------------------------------
>                 Key: HBASE-18518
>                 URL: https://issues.apache.org/jira/browse/HBASE-18518
>             Project: HBase
>          Issue Type: Task
>          Components: dependencies, pom, REST
>    Affects Versions: 3.0.0, 2.0.0-alpha-1
>            Reporter: Samir Ahmic
>            Assignee: Samir Ahmic
>              Labels: cleanup
>             Fix For: 2.0.0-alpha-3
>         Attachments: HBASE-18518-master-01.patch, HBASE-18518-master-02.patch
> Recently i have opened https://issues.apache.org/jira/browse/HBASE-18506 and it is clear
that is caused by mixing jersey1 and jersey2 jars in classpath. With https://issues.apache.org/jira/browse/HBASE-12894
we have introduced jersey2 to project,  and we also  have bunch of transitive dependencies
(mainly from hadoop) on jersey1 which is not happiest situation since jersey1 and jersey2
under same classpath can case runtime issues as it was case with rest.
> This task will have following steps
> * Clean code and replace jersey1 constructs with jersey2 versions(there should not be
much of this)
> * Add exclusions for transitive jersey1 dependencies in pom.xml
> * Add exclusions  in hadoop-two-compat.xml to prevent jersey1 jars in lib dir

This message was sent by Atlassian JIRA

View raw message