samedi 20 juin 2015

JSF Wildcat Server does not find .xhtml File

I am using Wildcat 8.x with Dynamic Web Module 3.1 and JavaServer Faces 2.2. I try to run a simple HelloWorld Project. My Server is running, but if I am trying to connect to a .xhtml file in with: http://localhost:8080/ProjectName/HelloWorld.jsf he is however trying to connect to Helloworld.jsp. Console Log:

14:01:38,867 WARNING [javax.enterprise.resource.webcontainer.jsf.context] (default task-7) JSF1091: For Data /HelloWorld.jsp no Mime-Type was found. Put in a Mime-Type-Mapping to web.xml.

My web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://ift.tt/ra1lAU"
    xmlns="http://ift.tt/19L2NlC"
    xsi:schemaLocation="http://ift.tt/19L2NlC http://ift.tt/1drxgYl"
    version="3.1">
    <display-name>TestJSF</display-name>
    <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>/faces/*</url-pattern>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
</web-app>

Aucun commentaire:

Enregistrer un commentaire