怎么解决这个异常 java.lang.NoClassDefFoundError: javax/el/ELContextEvent
我用的是liferay6.0(tomcat6.0),jsp页面怎么不能用el表达式输出内容?而且jstl.jar1.2的包和jstl-impl.jar包也导入了,还是不行...
我用的是liferay6.0(tomcat6.0),jsp页面怎么不能用el表达式输出内容?而且jstl.jar 1.2的包和jstl-impl.jar包也导入了,还是不行, 请高手指教,下面是 主要异常内容:
Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /view.jsp at line 11
8:
9:
10: <c:forEach var="i" begin="1" end="10" step="1" >
11: ${i}
12: </c:forEach>
13:
14: <form method="post" action="<portlet:actionURL windowState="normal"/>" >
Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:312)
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:135)
... 194 more
Caused by: javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ELContextEvent
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
at org.apache.jsp.view_jsp._jspService(view_jsp.java:164)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
... 204 more
找到原因了,javax/el/ELContextEvent在liferay-portal-6.0.0\tomcat-6.0.24\lib\el-api.jar包下,导入到自己的portlet即可
谢谢各位的回答 展开
Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page /view.jsp at line 11
8:
9:
10: <c:forEach var="i" begin="1" end="10" step="1" >
11: ${i}
12: </c:forEach>
13:
14: <form method="post" action="<portlet:actionURL windowState="normal"/>" >
Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:312)
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:135)
... 194 more
Caused by: javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ELContextEvent
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
at org.apache.jsp.view_jsp._jspService(view_jsp.java:164)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
... 204 more
找到原因了,javax/el/ELContextEvent在liferay-portal-6.0.0\tomcat-6.0.24\lib\el-api.jar包下,导入到自己的portlet即可
谢谢各位的回答 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询