在尝试运行JSF示例时,get.sun.faces.taglib.jsf_core不存在

时间:2013-12-03 06:12:41

标签: jsf

我正在尝试运行示例JSF代码,但是获得了以下Jasper异常: -

org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP

PWC6197: An error occurred at line: 14 in the jsp file: /index.jsp
PWC6199: Generated servlet error:
package com.sun.faces.taglib.jsf_core does not exist

PWC6197: An error occurred at line: 14 in the jsp file: /index.jsp
PWC6199: Generated servlet error:
package com.sun.faces.taglib.jsf_core does not exist

PWC6197: An error occurred at line: 14 in the jsp file: /index.jsp
PWC6199: Generated servlet error:
package com.sun.faces.taglib.jsf_core does not exist

PWC6197: An error occurred at line: 15 in the jsp file: /index.jsp
PWC6199: Generated servlet error:
package com.sun.faces.taglib.html_basic does not exist

PWC6197: An error occurred at line: 15 in the jsp file: /index.jsp
PWC6199: Generated servlet error:
package com.sun.faces.taglib.html_basic does not exist

PWC6197: An error occurred at line: 15 in the jsp file: /index.jsp
PWC6199: Generated servlet error:
package com.sun.faces.taglib.html_basic does not exist

我创造了项目的战争并部署在glassfish上。所有必需的jar都在lib文件夹中:jsf-api.jar,jsf-impl.jar,jstl-1.1.0.jar

以下是我的index.jsp

<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head><title>Simple jsp page</title></head>
  <body>

  <f:view>
      <h:outputLabel value="Hello, world"/>
  </f:view>

  </body>
</html>

不知道为什么它找不到包裹。请提供一些指示。

谢谢, 帕里克希特

0 个答案:

没有答案