From c035e665f01324f3a7607c79516dce31a5149df4 Mon Sep 17 00:00:00 2001 From: stack Date: Fri, 1 May 2020 15:09:13 -0700 Subject: [PATCH] HBASE-24284 [h3/jdk11] REST server won't start Exclude transitive includes of jax-rs 1.x and then explicitly include jax-rs 2.x glassfish impl for REST context when hadoop3. --- .../hbase-shaded-client-project/pom.xml | 10 ++++++ hbase-client/pom.xml | 8 +++++ hbase-endpoint/pom.xml | 8 +++++ hbase-examples/pom.xml | 10 ++++++ hbase-hadoop2-compat/pom.xml | 8 +++++ hbase-http/pom.xml | 8 +++++ hbase-it/pom.xml | 10 ++++++ hbase-mapreduce/pom.xml | 18 ++++++++++ hbase-rest/pom.xml | 15 ++++++-- hbase-rsgroup/pom.xml | 20 +++++++++++ hbase-server/pom.xml | 28 +++++++++++++++ hbase-shaded/hbase-shaded-mapreduce/pom.xml | 12 +++++++ .../hbase-shaded-testing-util/pom.xml | 29 +++++++++++++++- hbase-shell/pom.xml | 28 +++++++++++++++ hbase-testing-util/pom.xml | 34 +++++++++++++++++++ hbase-thrift/pom.xml | 26 ++++++++++++++ 16 files changed, 268 insertions(+), 4 deletions(-) diff --git a/hbase-archetypes/hbase-shaded-client-project/pom.xml b/hbase-archetypes/hbase-shaded-client-project/pom.xml index c71e7703b32b..92e77a22acab 100644 --- a/hbase-archetypes/hbase-shaded-client-project/pom.xml +++ b/hbase-archetypes/hbase-shaded-client-project/pom.xml @@ -45,6 +45,16 @@ hbase-testing-util ${project.version} test + + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + + org.apache.hbase diff --git a/hbase-client/pom.xml b/hbase-client/pom.xml index 2c0050fc4b6e..c52ec16a9355 100644 --- a/hbase-client/pom.xml +++ b/hbase-client/pom.xml @@ -328,6 +328,14 @@ tomcat jasper-runtime + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + diff --git a/hbase-endpoint/pom.xml b/hbase-endpoint/pom.xml index 9c3de37b7fff..2c20d4d05887 100644 --- a/hbase-endpoint/pom.xml +++ b/hbase-endpoint/pom.xml @@ -311,6 +311,14 @@ com.google.guava guava + + javax.xml.bind. + jaxb-api + + + javax.ws.rs + jsr311-api + diff --git a/hbase-examples/pom.xml b/hbase-examples/pom.xml index c103d954b0ed..4cec45b2ba22 100644 --- a/hbase-examples/pom.xml +++ b/hbase-examples/pom.xml @@ -280,6 +280,16 @@ org.apache.hadoop hadoop-minicluster + + + javax.xml.bind. + jaxb-api + + + javax.ws.rs + jsr311-api + + diff --git a/hbase-hadoop2-compat/pom.xml b/hbase-hadoop2-compat/pom.xml index 9295e6ade805..236b52ce65de 100644 --- a/hbase-hadoop2-compat/pom.xml +++ b/hbase-hadoop2-compat/pom.xml @@ -131,6 +131,14 @@ limitations under the License. com.google.guava guava + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + diff --git a/hbase-http/pom.xml b/hbase-http/pom.xml index 33c89b799163..2d53ce15a19a 100644 --- a/hbase-http/pom.xml +++ b/hbase-http/pom.xml @@ -399,6 +399,14 @@ com.google.guava guava + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + test diff --git a/hbase-it/pom.xml b/hbase-it/pom.xml index 0403abbf6a26..9d9d44af3429 100644 --- a/hbase-it/pom.xml +++ b/hbase-it/pom.xml @@ -395,6 +395,16 @@ org.apache.hadoop hadoop-minicluster + + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + + org.apache.hadoop diff --git a/hbase-mapreduce/pom.xml b/hbase-mapreduce/pom.xml index e2b4d26479e8..781748d7dee3 100644 --- a/hbase-mapreduce/pom.xml +++ b/hbase-mapreduce/pom.xml @@ -219,6 +219,14 @@ org.codehaus.jackson jackson-core-asl + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + @@ -409,6 +417,16 @@ org.apache.hadoop hadoop-minicluster test + + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + + diff --git a/hbase-rest/pom.xml b/hbase-rest/pom.xml index 37aa174fd810..7410acd5186d 100644 --- a/hbase-rest/pom.xml +++ b/hbase-rest/pom.xml @@ -490,8 +490,8 @@ test - com.google.guava - guava + com.google.guava + guava @@ -508,7 +508,7 @@ hadoop-auth - + com.sun.jersey jersey-servlet 1.19.4 @@ -519,6 +519,15 @@ + + + org.glassfish.jaxb + jaxb-runtime + 2.3.2 + diff --git a/hbase-rsgroup/pom.xml b/hbase-rsgroup/pom.xml index 59a7d8fc59c7..6d9cc89074cf 100644 --- a/hbase-rsgroup/pom.xml +++ b/hbase-rsgroup/pom.xml @@ -84,6 +84,16 @@ org.apache.hbase hbase-server + + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + + org.apache.hbase @@ -111,6 +121,16 @@ org.apache.hbase hbase-testing-util test + + + com.google.guava + guava + + + javax.xml.bind + jaxb-api + + diff --git a/hbase-server/pom.xml b/hbase-server/pom.xml index 26af82b73667..3febc7777198 100644 --- a/hbase-server/pom.xml +++ b/hbase-server/pom.xml @@ -636,6 +636,14 @@ com.google.guava guava + + javax.xml.bind + java-api + + + javax.xml.bind + jaxb-api + @@ -739,6 +747,16 @@ org.apache.hadoop hadoop-mapreduce-client-core + + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + + org.apache.hadoop @@ -760,6 +778,16 @@ org.apache.hadoop hadoop-minicluster test + + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + + javax.ws.rs @@ -345,6 +349,14 @@ com.google.guava guava + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + diff --git a/hbase-shaded/hbase-shaded-testing-util/pom.xml b/hbase-shaded/hbase-shaded-testing-util/pom.xml index adb40480f70f..270b0da3e132 100644 --- a/hbase-shaded/hbase-shaded-testing-util/pom.xml +++ b/hbase-shaded/hbase-shaded-testing-util/pom.xml @@ -61,6 +61,14 @@ org.codehaus.jackson jackson-xc + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + @@ -92,6 +100,14 @@ org.codehaus.jackson jackson-xc + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + @@ -112,6 +128,12 @@ hbase-server test-jar compile + + + javax.xml.bind + jaxb-api + + org.apache.hbase @@ -137,12 +159,17 @@ 1.9.13 compile - org.apache.hbase hbase-testing-util ${project.version} compile + + + javax.xml.bind + jaxb-api + + diff --git a/hbase-shell/pom.xml b/hbase-shell/pom.xml index 4d1cb8d7b7e3..3bb2440941b8 100644 --- a/hbase-shell/pom.xml +++ b/hbase-shell/pom.xml @@ -266,6 +266,14 @@ com.google.guava guava + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + @@ -276,6 +284,14 @@ com.google.guava guava + + javax.xml.bind. + jaxb-api + + + javax.ws.rs + jsr311-api + @@ -288,6 +304,14 @@ com.google.guava guava + + javax.xml.bind. + jaxb-api + + + javax.ws.rs + jsr311-api + @@ -369,6 +393,10 @@ com.google.guava guava + + javax.ws.rs + jsr311-api + diff --git a/hbase-testing-util/pom.xml b/hbase-testing-util/pom.xml index 0b246b495643..2144abffc7ed 100644 --- a/hbase-testing-util/pom.xml +++ b/hbase-testing-util/pom.xml @@ -140,6 +140,12 @@ org.apache.hadoop hadoop-common compile + + + javax.xml.bind + jaxb-api + + org.apache.hadoop @@ -155,6 +161,10 @@ com.google.guava guava + + javax.xml.bind + jaxb-api + @@ -166,6 +176,10 @@ com.google.guava guava + + javax.xml.bind + jaxb-api + @@ -227,11 +241,31 @@ org.apache.hadoop hadoop-common + + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + + org.apache.hadoop hadoop-minicluster compile + + + com.google.guava + guava + + + javax.ws.rs + jsr311-api + + org.apache.hadoop diff --git a/hbase-thrift/pom.xml b/hbase-thrift/pom.xml index 664e13a30f6b..f13574bde284 100644 --- a/hbase-thrift/pom.xml +++ b/hbase-thrift/pom.xml @@ -428,6 +428,10 @@ com.google.guava guava + + javax.xml.bind + jaxb-api + @@ -438,6 +442,10 @@ com.google.guava guava + + javax.xml.bind + jaxb-api + @@ -469,6 +477,10 @@ org.apache.zookeeper zookeeper + + javax.xml.bind + jaxb-api + @@ -518,6 +530,20 @@ org.apache.hadoop hadoop-minicluster + + + com.google.guava + guava + + + javax.xml.bind + jaxb-api + + + javax.ws.rs + jsr311-api + +