From 3ac60fc0d87911c42460066a1d30678a2963582d Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 18 Aug 2017 10:13:49 -0700 Subject: [PATCH] Revert "HBASE-18518 Remove jersey1* dependencies form project and jersey1* jars from lib dir; ADDENDUM on branch-2 so master and branch-2 are same" This reverts commit 6f9af9a9245e3354c5859660c3224ed19d58498a. --- hbase-rest/pom.xml | 4 ---- .../main/java/org/apache/hadoop/hbase/rest/RESTServer.java | 4 +--- pom.xml | 5 ----- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/hbase-rest/pom.xml b/hbase-rest/pom.xml index 3e55610db65..c157a8d3817 100644 --- a/hbase-rest/pom.xml +++ b/hbase-rest/pom.xml @@ -309,10 +309,6 @@ org.glassfish.jersey.containers jersey-container-servlet-core - - org.glassfish.jersey.media - jersey-media-json-jackson1 - diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java index eb3fc26e7d1..b78af2f5490 100644 --- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java +++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java @@ -66,7 +66,6 @@ import org.eclipse.jetty.util.thread.QueuedThreadPool; import org.eclipse.jetty.jmx.MBeanContainer; import org.eclipse.jetty.servlet.FilterHolder; -import org.glassfish.jersey.jackson1.Jackson1Feature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.servlet.ServletContainer; @@ -236,8 +235,7 @@ public class RESTServer implements Constants { parseCommandLine(args, servlet); // set up the Jersey servlet container for Jetty - ResourceConfig application = new ResourceConfig(). - packages("org.apache.hadoop.hbase.rest").register(Jackson1Feature.class); + ResourceConfig application = new ResourceConfig(); ServletHolder sh = new ServletHolder(new ServletContainer(application)); // Set the default max thread number to 100 to limit diff --git a/pom.xml b/pom.xml index a7857157ead..9da4c6b2d7e 100644 --- a/pom.xml +++ b/pom.xml @@ -1878,11 +1878,6 @@ jersey-container-servlet-core ${jersey.version} - - org.glassfish.jersey.media - jersey-media-json-jackson1 - ${jackson.version} - javax.xml.bind jaxb-api