首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HTTP状态404 Tomcat 8

HTTP状态404 Tomcat 8
EN

Stack Overflow用户
提问于 2016-08-28 15:59:22
回答 1查看 920关注 0票数 2

服务器正确启动,但当我在服务器上运行项目时,它显示了以下错误:

Etat 404 - /gestionParc/faces/login.xhtml类型亲和消息/gestionParc/faces/login.xhtml description La ressource demandée n‘est pas可分解。

下面是web.xml文件:

代码语言:javascript
复制
<?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>

我试着用Tomcat 7运行它,它也不起作用。

有人能帮我吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-28 16:38:25

您的login.xhtml文件位于何处。它应该直接显示在您的应用程序web内容下,即在与您的WEB文件夹相同的级别上。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39193136

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档