[
https://issues.apache.org/jira/browse/HBASE-24215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17092798#comment-17092798
]
Michael Stack commented on HBASE-24215:
---------------------------------------
JDK11 and JAXB... no longer provided. Was getting this after excluding all
jersey1:
Caused by: java.lang.ClassNotFoundException:
com.sun.xml.internal.bind.v2.ContextFactory
at
org.apache.hadoop.hbase.rest.TestNamespacesInstanceResource.setUpBeforeClass(TestNamespacesInstanceResource.java:95)
Must be supplied. See.
https://www.studytonight.com/post/solved-javalangnoclassdeffounderror-javaxxmlbindjaxbexception-in-java-11
https://www.concretepage.com/questions/690
Then, after adding in alternative for ContextFactory -- a glassfish jaxb impl,
this got me over the ContextFactory hump. I purged all transitive includes of
jaxb which may not be needed. Need to check.
I then got complaint that ServletContainer from jersey1 couldn't be found on
the CLASSPATH. Explicit add got all to work seemingly. Tests passed. When I
went to start the REST server though, I ran into HBASE-24257.
Doing a purge of all mentions of jsr311 as transitive includes, a
super-HBASE-24257, allows REST to start. Let me try a patch against
hadoopqa.... Will see how it does. Will then regroup.
> [Flakey Tests] [ERROR] TestSecureRESTServer java.lang.NoClassDefFoundError:
> com/sun/jersey/core/spi/factory/AbstractRuntimeDelegate
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-24215
> URL: https://issues.apache.org/jira/browse/HBASE-24215
> Project: HBase
> Issue Type: Bug
> Reporter: Michael Stack
> Assignee: Michael Stack
> Priority: Major
> Fix For: 3.0.0, 2.3.0
>
> Attachments:
> 0001-HBASE-24215-Flakey-Tests-ERROR-TestSecureRESTServer-.patch
>
>
> Happened in two builds... 2.3 and 2:
> jdk8 hadoop3 nightly just now
> https://builds.apache.org/view/H-L/view/HBase/job/HBase%20Nightly/job/branch-2.3/44/
> {code}
> [ERROR] org.apache.hadoop.hbase.rest.TestSecureRESTServer Time elapsed: 0.01
> s <<< ERROR!
> java.lang.NoClassDefFoundError:
> com/sun/jersey/core/spi/factory/AbstractRuntimeDelegate
> at
> org.apache.hadoop.hbase.rest.TestSecureRESTServer.setupServer(TestSecureRESTServer.java:202)
> Caused by: java.lang.ClassNotFoundException:
> com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate
> at
> org.apache.hadoop.hbase.rest.TestSecureRESTServer.setupServer(TestSecureRESTServer.java:202)
> {code}
> Then again in branch2
> https://builds.apache.org/view/H-L/view/HBase/job/HBase%20Nightly/job/branch-2/2619/
> {code}
> [ERROR] org.apache.hadoop.hbase.rest.TestSecureRESTServer Time elapsed:
> 0.017 s <<< ERROR!
> java.lang.NoClassDefFoundError:
> com/sun/jersey/core/spi/factory/AbstractRuntimeDelegate
> at
> org.apache.hadoop.hbase.rest.TestSecureRESTServer.setupServer(TestSecureRESTServer.java:202)
> Caused by: java.lang.ClassNotFoundException:
> com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate
> at
> org.apache.hadoop.hbase.rest.TestSecureRESTServer.setupServer(TestSecureRESTServer.java:202)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)