我是一个完全的初学者,我正在使用 eclipse kepler 创建我的 web 应用程序:我已经设置了 glassfish4 服务器(它的工作)和项目的属性我使用 primefaces 以及 jsf 2.2 我创建了第一页和我想尝试在服务器上运行它,但没有显示 404 错误请求的资源不可用。我已经将primefaces jar添加到类路径这是页面index.html的代码
    <!DOCTYPE html>
    <html
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui"
    >
    <head>
    </head>
    <f:view contentType="text/html">
    <h:head />
    <h:body>
    <h:form>
    <p:spinner />
    </h:form>
    </h:body>
    </f:view>
    </html>
这是我的 web.xml 中的代码
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns="http://xmlns.jcp.org/xml/ns/javaee" 
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee     http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" 
    id="WebApp_ID" version="3.1"
    xmlns:p="http://primefaces.org/ui">
    <display-name>Portail</display-name>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.html</url-pattern>
    </servlet-mapping>
    </web-app>
我按照本文中的一些步骤创建它http://computingat40s.wordpress.com/creating-a-simple-jsf-web-application-from-the-ground/ 我的 lib 目录仍然是空的 我没有添加任何东西对它我什至没有开始创建实体