Olá, estou com um pequeno erro no meu projeto. Estou fazendo um projeto Maven com archetype de web, só que infelizmente não consigo carregar minha página xhtml quando rodo o Tomcat v9.0.
Erro:
Minha web.xml:
<–?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_2_5.xsd” version=“2.5”>
<–display-name>Archetype Created Web Application
<–servlet>
<–servlet-name>Faces Servlet
<–servlet-class>javax.faces.webapp.FacesServlet
<–load-on-startup>1
<–/servlet>
<–servlet-name>Faces Servlet
<–url-pattern>*.xhtml
<–/servlet-mapping>
<–/web-app>
(está com “–” para poder mostrar as linhas).
Minha index.xhtml:
<–!DOCTYPE html>
<–html>
<–head>
<–meta charset=“ISO-8859-1”>
<–title>Teste
<–/head>
<–body>
<–/body>
<–/html>