JSF works only with the .xhtml ending

Posted by ThreeFingerMark on Stack Overflow See other posts from Stack Overflow or by ThreeFingerMark
Published on 2010-01-22T15:00:07Z Indexed on 2010/04/27 18:03 UTC
Read the original article Hit count: 298

Filed under:
|
|

Hello, i start with the programming of a JSF Website. At the moment all files have the .xhtml ending. When i go to http://localhost:8080/myProject/start.jsf everything is all right. But when i rename the file from start.xhtml to start.jsf i became a NoClassDefFound Error.

What is my mistake?

  <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>*.jsf</url-pattern>
  </servlet-mapping>
  <context-param>
    <param-name>javax.faces.PROJECT_STAGE</param-name>
    <param-value>Development</param-value>
  </context-param>

© Stack Overflow or respective owner

Related posts about jsf

Related posts about facelets