<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC ?-//W3C//DTD XHTML 1.0 Transitional//EN?
?http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd?>
<html xmlns=?http://www.w3.org/1999/xhtml?
xmlns:h=?http://java.sun.com/jsf/html?>
<h:head><title>JSF 2.0</title></h:head>
<h:body>
<h:form id=?form1″>
<h:outputText value=?Primeiro exemplo com JSF 2.0″ />
</h:form>
</h:body>
</html>
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: null source
javax.faces.webapp.FacesServlet.service(FacesServlet.java:321)
root cause
java.lang.IllegalArgumentException: null source
java.util.EventObject.<init>(Unknown Source)
javax.faces.event.SystemEvent.<init>(SystemEvent.java:67)
javax.faces.event.ComponentSystemEvent.<init>(ComponentSystemEvent.java:69)
javax.faces.event.PostRestoreStateEvent.<init>(PostRestoreStateEvent.java:69)
com.sun.faces.lifecycle.RestoreViewPhase.deliverPostRestoreStateEvent(RestoreViewPhase.java:256)
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:245)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:308)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.4 logs.
--------------------------------------------------------------------------------
Apache Tomcat/7.0.4
gerei um war e fiz o deploy no apache tomcat 7 e continua quando o mesmo erro e vi no diretório lib e só tem
jsf-api.jar
jsf-impl.jar
jstl.jar
standard.jar
HTTP Status 404 - /ProjetoJSF2/
--------------------------------------------------------------------------------
type Status report
message /ProjetoJSF2/
description The requested resource (/ProjetoJSF2/) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/7.0.4