Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6136

javax.servlet.UnavailableException thrown when using Spark connector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.1.0
    • 5.1.0, 4.16.0
    • core, spark-connector
    • None

    Description

      We get en exception from Spark when using the phoenix-spark connector.

      2020-09-11 13:29:28,252 WARN [main] component.AbstractLifeCycle: FAILED org.glassfish.jersey.servlet.ServletContainer-62c42a3@f5c8fa49==org.glassfish.jersey.servlet.ServletContainer,jsp=null,order=-1,inst=true,async=true: javax.servlet.UnavailableException: Servlet class org.glassfish.jersey.servlet.ServletContainer is not a javax.servlet.Servlet
       javax.servlet.UnavailableException: Servlet class org.glassfish.jersey.servlet.ServletContainer is not a javax.servlet.Servlet
       at org.spark_project.jetty.servlet.ServletHolder.checkServletType(ServletHolder.java:505)
       This seems to be caused by a conflict between the servlet implementation of jetty, and jersey.

      Shading both Jersey libraries in phoenix-client has solved the problem for us.

      Attachments

        1. PHOENIX-6136.master.v1.patch
          2 kB
          Istvan Toth

        Issue Links

          Activity

            People

              stoty Istvan Toth
              tadami Tamas Adami
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h