[
https://issues.apache.org/jira/browse/HBASE-24284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17102902#comment-17102902
]
Michael Stack commented on HBASE-24284:
---------------------------------------
Pushed this:
{code}
commit f7deadc9af9a7a402f6e362fb8ce88bcfba2e459 (HEAD -> 2, origin/branch-2,
2.clean)
Author: stack <[email protected]>
Date: Fri May 8 13:00:07 2020 -0700
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. (#1625)
Addendum to fix failing MR tests; e.g. TestExportSnapshot.
diff --git a/hbase-mapreduce/pom.xml b/hbase-mapreduce/pom.xml
index 781748d7de..ff52764db8 100644
--- a/hbase-mapreduce/pom.xml
+++ b/hbase-mapreduce/pom.xml
@@ -418,10 +418,6 @@
<artifactId>hadoop-minicluster</artifactId>
<scope>test</scope>
<exclusions>
- <exclusion>
- <groupId>javax.xml.bind</groupId>
- <artifactId>jaxb-api</artifactId>
- </exclusion>
<exclusion>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
{code}
> [h3/jdk11] REST server won't start
> ----------------------------------
>
> Key: HBASE-24284
> URL: https://issues.apache.org/jira/browse/HBASE-24284
> Project: HBase
> Issue Type: Bug
> Components: REST
> Reporter: Michael Stack
> Assignee: Michael Stack
> Priority: Major
> Fix For: 3.0.0-alpha-1, 2.3.0
>
>
> {code}
> 2020-04-29 07:06:31,610 INFO [main] server.AbstractConnector: Started
> ServerConnector@1bdf8190{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
> Exception in thread "main" java.lang.NoSuchMethodError: 'java.util.Map
> javax.ws.rs.core.Application.getProperties()'
> 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)
> {code}
> Seems fine for hadoop2/jdk8.
> I get the above when I do: mvn install -Dhadoop.profile=3.0 building w/ jdk11.
> Fix coming...
--
This message was sent by Atlassian Jira
(v8.3.4#803005)