[英]java.lang.NoClassDefFoundError: com/sun/faces/facelets/tag/jstl/core/IterationStatus
I'm using ui:repeat in my facelet to iterate over a collection as following: 我正在使用ui:在我的facelet中重复迭代一个集合,如下所示:
<ui:repeat var="name" value="#{loginBean.names}">
<h:outputLabel value="#{name}" />
</ui:repeat>
But it gives following exception: 但它给出了以下例外:
SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path [/eSchool] threw exception [com/sun/faces/facelets/tag/jstl/core/IterationStatus] with root cause
java.lang.NoClassDefFoundError: com/sun/faces/facelets/tag/jstl/core/IterationStatus
Advance thanks for help. 谢谢你的帮助。
You seem to be running a barebones JSP/Servlet container like Tomcat and not a fullworthy Java EE container like Glassfish. 您似乎正在运行像Tomcat这样的准系统JSP / Servlet容器,而不是像Glassfish那样的全功能Java EE容器。 A JSP/Servlet container does not ship with JSTL while Facelets needs it for the
<ui:repeat>
, <c:xxx>
and <fn:xxx>
tags/functions. JSP / Servlet容器不附带JSTL,而Facelets需要它用于
<ui:repeat>
, <c:xxx>
和<fn:xxx>
标记/函数。
Download jstl-1.2.jar , drop it in your webapp's /WEB-INF/lib
and rinse and this problem should disappear. 下载jstl-1.2.jar ,将其放入webapp的
/WEB-INF/lib
并冲洗,此问题应该消失。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.