Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18123

Ambari server start fails after upgrade with java.lang.NoSuchFieldError: IS_SECURITY_ENABLED

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-server, ambari-views
    • None

    Description

      ambari-server --hash
      dcb6d19d2e34b76caae73bcfbd830388155c16dc

      Observed this issue after upgrade of Ambari server from 2.2.2.0 to 2.4.0.0 where after running "ambari-server start" command, the logs throw below errors:

      05 Aug 2016 18:00:03,007 ERROR [main] AmbariServer:927 - Failed to run the Ambari Server
      java.lang.NoSuchFieldError: IS_SECURITY_ENABLED
      	at org.apache.jasper.compiler.JspRuntimeContext.<init>(JspRuntimeContext.java:197)
      	at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:150)
      	at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:532)
      	at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:344)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:793)
      	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
      	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
      	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
      	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      	at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
      	at org.eclipse.jetty.server.Server.doStart(Server.java:282)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      	at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:616)
      	at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:925)
      

      Ambari classpath contains 2 jars with JspRuntimeContext.
      The failure is caused by in Hive view
      [Loaded org.apache.jasper.compiler.JspRuntimeContext from file:/var/lib/ambari-server/resources/views/work/HIVE%7B1.5.0%7D/WEB-INF/lib/jasper-compiler-5.5.23.jar]
      JspRuntimeContext in this jar doesn't have field IS_SECURITY_ENABLED

      Attachments

        1. AMBARI-18123.patch
          3 kB
          Dmytro Sen

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              dsen Dmytro Sen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: