JSF/primefaces Servlet faces servlet not available
Hei there, I want to start working with PrimeFaces (have a little
experience in JSF 2.0) but I encountered an error. I did everything by the
book but I still get an error like this :
PS: I added the jars (Primefaces-3.5.jar / javax.faces-2.2.1.jar to the
build path) and it won't work, this is the link to error log.
HTTP Status 404 - Servlet Faces Servlet is not available
type Status report
message Servlet Faces Servlet is not available
description The requested resource (Servlet Faces Servlet is not
available) is not available.
this is the web.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>aTest</display-name>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
</web-app>
And this is the index.xhtml, the only xhtml file I have in this project:
<html xmlns="http://www.w3c.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<p:editor />
</h:body>
</html>
No comments:
Post a Comment