Jsf HTTP状态404 Tomcat 8
服务器正确启动,但在服务器上运行项目时,会显示以下错误: Etat HTTP 404-/gestionParc/faces/login.xhtml类型 message/gestionParc/faces/login.xhtml description La ressource 需求是有争议的。ApacheTomcat/8.0.36 以下是Jsf HTTP状态404 Tomcat 8,jsf,tomcat,web.xml,Jsf,Tomcat,Web.xml,服务器正确启动,但在服务器上运行项目时,会显示以下错误: Etat HTTP 404-/gestionParc/faces/login.xhtml类型 message/gestionParc/faces/login.xhtml description La ressource 需求是有争议的。ApacheTomcat/8.0.36 以下是web.xml文件: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="h
web.xml
文件:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID"
version="3.1" metadata-complete="true">
<display-name>gestionParc</display-name>
<absolute-ordering></absolute-ordering>
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>south-street</param-value>
</context-param>
<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>
</servlet-mapping>
<context-param>
<description>State saving method: 'client' or
'server' (=default). See JSF Specification 2.5.2
</description>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>resources.application</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
</web-app>
格斯蒂恩帕克酒店
主题
南街
Facesservlet
javax.faces.webapp.FacesServlet
1.
Facesservlet
/面孔/*
状态保存方法:“客户端”或
“服务器”(=默认值)。参见JSF规范2.5.2
javax.faces.STATE_保存方法
客户
javax.servlet.jsp.jstl.fmt.localizationContext
资源.应用
com.sun.faces.config.ConfigureListener
我试着用Tomcat 7运行它,但它也不起作用
有人能帮我吗?您的login.xhtml文件在哪里。它应该直接显示在应用程序web内容下,即与web-INF文件夹处于同一级别