Seungyeop Shin created AMBARI-12321:
---------------------------------------
Summary: error ambari-view example (hello-spring-view)
Key: AMBARI-12321
URL: https://issues.apache.org/jira/browse/AMBARI-12321
Project: Ambari
Issue Type: Bug
Components: ambari-views
Affects Versions: 2.1.0
Environment: Sandbox (HDP 2.3)
Reporter: Seungyeop Shin
When I was practice "hello-spring-view" on ambari(2.1.0) for spring web app in
view, an error is occured the view page.
Problem accessing /views/HELLO_SPRING/1.0.0/INSTANCE/. Reason:
Server Error
Caused by:
java.lang.AbstractMethodError:
javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;
at
org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:994)
at
org.apache.jsp.WEB_002dINF.jsp.hello_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.hello_jsp:68)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575)
- I had to move the view.xml file in "hello-spring-view" to src/main/webapp,
since ambari couldn't extract war file in
/var/lib/ambari-server/resources/views/work automatically. That means ambari
can't recognize view package if the view.xml file isn't located in root of the
view package.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)