[
https://issues.apache.org/jira/browse/HBASE-22345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16831640#comment-16831640
]
Sean Busbey commented on HBASE-22345:
-------------------------------------
{code}
diff --git a/hbase-protocol-shaded/pom.xml b/hbase-protocol-shaded/pom.xml
index
3cf9d32f1cf601694b4cb76358c824a614a715da..245ea34d158c168dfb001cf528ef2eacbac16333
100644
--- a/hbase-protocol-shaded/pom.xml
+++ b/hbase-protocol-shaded/pom.xml
@@ -162,8 +162,6 @@
</relocations>
<artifactSet>
<excludes>
- <!-- exclude J2EE modules that come in for JDK11+ -->
- <exclude>javax.annotation:javax.annotation-api</exclude>
<!--Exclude protobuf itself. We get a patched version from
hbase-thirdparty.
-->
<exclude>org.apache.hbase.thirdparty:*</exclude>
diff --git a/hbase-shaded/hbase-shaded-client/pom.xml
b/hbase-shaded/hbase-shaded-client/pom.xml
index
96602d3d029f72c268054362fb0bcbcbef9e9487..232520a03dab1d6aff18a2b9ca52ebbca88ff41f
100644
--- a/hbase-shaded/hbase-shaded-client/pom.xml
+++ b/hbase-shaded/hbase-shaded-client/pom.xml
@@ -54,8 +54,6 @@
<configuration>
<artifactSet>
<excludes>
- <!-- exclude J2EE modules that come in for
JDK11+ -->
-
<exclude>javax.annotation:javax.annotation-api</exclude>
<!-- exclude J2EE modules that come in for
JDK11+ (since hadoop-3.2.0) -->
<exclude>javax.activation:javax.activation-api</exclude>
<!--
diff --git a/hbase-shaded/pom.xml b/hbase-shaded/pom.xml
index
478ab59f54298f18b4013d50c30fd03e0a6b9ddb..68c9139d3fd50de17bc4fa1bb2821a16278eda70
100644
--- a/hbase-shaded/pom.xml
+++ b/hbase-shaded/pom.xml
@@ -132,8 +132,6 @@
<shadeTestJar>false</shadeTestJar>
<artifactSet>
<excludes>
- <!-- exclude J2EE modules that come in
for JDK11+ -->
-
<exclude>javax.annotation:javax.annotation-api</exclude>
<!-- exclude J2EE modules that come in
for JDK11+ (since hadoop-3.2.0) -->
<exclude>javax.activation:javax.activation-api</exclude>
<!-- default to excluding Hadoop, have
module that want
{code}
I get why we need the dependency in the assembly given the jdk8 situation. But
why would we need it in the internal-only shaded-protocol or in our shaded
client? I thought this just gets used by jersey?
> Rest Server throws NoClassDefFoundError : javax/annotation/Priority on
> JDK8/JDK8
> --------------------------------------------------------------------------------
>
> Key: HBASE-22345
> URL: https://issues.apache.org/jira/browse/HBASE-22345
> Project: HBase
> Issue Type: Bug
> Reporter: Sakthi
> Assignee: Sakthi
> Priority: Minor
> Attachments: hbase-22345.master.001.patch
>
>
> When compiled and run with JDK8, Rest server throws NoClassDefFoundError:
> javax/annotation/Priority
>
> Need to add in the correct dependency version or upgrade the appropriate rest
> component.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)