Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-22972 [JDK11] Support JDK11 LTS in HBase
  3. HBASE-22249

Rest Server throws NoClassDefFoundError with Java 11 (run-time)

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.5
    • Fix Version/s: 3.0.0-alpha-1, 2.2.0, 2.3.0, 2.1.5
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      While starting the rest server multiple instances of the following error can be seen:

      java.lang.NoClassDefFoundError: javax/activation/DataSource
      

      After start-up of the server, while serving requests, following errors can be seen:

      Caused by: A MultiException has 3 exceptions.  They are:
      1. java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl
      2. java.lang.IllegalStateException: Unable to perform operation: create on org.apache.hadoop.hbase.rest.provider.JAXBContextResolver
      3. java.lang.IllegalStateException: Unable to perform operation: create on org.glassfish.jersey.internal.ContextResolverFactory
      

      And the requests failed like this:

      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
      <title>Error 500 </title>
      </head>
      <body>
      <h2>HTTP ERROR: 500</h2>
      <p>Problem accessing /. Reason:
      <pre>    Request failed.</pre></p>
      <hr />
      </body>
      </html>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sakthi Sakthi
                Reporter:
                sakthi Sakthi
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: