I try to go to my page "index.xhtml", entering /index.xhtml in browser address bar but it caused 404 error that the index.jsp was not found. I dont have any idea why jsp is called.
My view:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
<title>This is a Test</title>
</h:head>
<h:body>
<div>
<H2>
<h:outputText value="test"/>
</H2>
</div>
</h:body>
</html>
My web.xml:
<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>