2017-03-27 47 views
0

我想配置Oozie的在Ubuntu 16.04 LTS,這個問題是Oozie的運行良好,除了在訪問Web控制檯我收到以下錯誤java的500錯誤:Oozie的Web控制檯4.3

Java版本:1.8

Oozie的版本:4.3

的Hadoop:2.3.7

錯誤

HTTP Status 500 - java.lang.NullPointerException 

type Exception report 

message java.lang.NullPointerException 

description The server encountered an internal error that prevented it from fulfilling this request. 

exception 

org.apache.jasper.JasperException: java.lang.NullPointerException 
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:542) 
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370) 
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321) 
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:723) 
    org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:171) 
    org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:594) 
    org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:553) 
    org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:176) 
    org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:86) 

root cause 

java.lang.NullPointerException 
    org.apache.jsp.index_jsp._jspInit(index_jsp.java:25) 
    org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52) 
    org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:164) 
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340) 
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321) 
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:723) 
    org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:171) 
    org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:594) 
    org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:553) 
    org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:176) 
    org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:86) 

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.47 logs. 
Apache Tomcat/6.0.47 

回答

1

這是Jasper Engine特有的類加載器問題。實際上,會有兩個JSP-API文件,一個是WEB-INF/lib中的jsp-api-2.1.jar,另一個是Tomcat/lib中的另一個jsp-api.jar。在我的情況下,兩者都在類路徑中。首先停止oozie服務器。然後,移動或刪除WEB-INF/lib中的jsp-api-2.1.jar,以確保類加載器不會選擇該選項。本質上,Tomcat應該從Tomcat/lib中選擇它。現在重新啓動oozie服務器。它應該工作。我遇到了同樣的問題,並按照上面提到的那樣工作。 :-)