简体   繁体   English

/faces/index.xhtml在ExternalContext中找不到作为Glassfish中的资源

[英]/faces/index.xhtml Not Found in ExternalContext as a Resource in Glassfish

I am getting this error while launching application. 启动应用程序时出现此错误。

com.sun.faces.context.FacesFileNotFoundException: /faces/index.xhtml Not Found in ExternalContext as a Resource com.sun.faces.context.FacesFileNotFoundException:/faces/index.xhtml作为资源在ExternalContext中找不到

This is the context of web.xml: 这是web.xml的上下文:

<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Production</param-value>
    </context-param>
    <context-param>
        <param-name>primefaces.THEME</param-name>
        <param-value>#{themeSwitcherBean.theme}</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>
    <session-config>
        <session-timeout>30</session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>faces/index.xhtml</welcome-file>
    </welcome-file-list>
</web-app>

The index.xhtml cant be found, which you declared in your web.xml as Welcome/Index file 无法找到index.xhtml,您在web.xml中将其声明为Welcome / Index文件

    <welcome-file-list>
        <welcome-file>faces/index.xhtml</welcome-file>
    </welcome-file-list>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 welcome-file index.xhtml提供“在ExternalContext中找不到”作为资源 - welcome-file index.xhtml gives Not Found in ExternalContext as a Resource JSF:/WEB-INF/*/javax.faces.resource/theme.xhtml在ExternalContext中找不到作为资源(Primeface的资源URI有星号) - JSF: /WEB-INF/*/javax.faces.resource/theme.xhtml Not Found in ExternalContext as a Resource (Primeface's resource URI has asterisk sign) 如何让Glassfish自动“找到”index.xhtml并通过JSF呈现它 - How to get Glassfish to automatically “find” the index.xhtml and render it through JSF 在ExternalContext中找不到资源 - Not Found in ExternalContext as a Resource richfaces + index.xhtml有错误 - richfaces + index.xhtml having errors JSF:在 ExternalContext 中找不到作为资源异常 - JSF: Not Found in ExternalContext as a Resource exception 发出Eclipse找不到ExternalContext作为资源 - Issue Eclipse Not Found ExternalContext as Resource 除index.xhtml外,未执行JSF页面 - JSF pages not being executed except index.xhtml javax.el.PropertyNotWritableException: /index.xhtml @29,118 value=&quot;&quot;: 设置操作的非法语法 - javax.el.PropertyNotWritableException: /index.xhtml @29,118 value=“”: Illegal Syntax for Set Operation 警告:/index.xhtml @ 22,110 target =“#{menuTab.action}”:在com.menu.MenuTab类型上写入“ action”时出错 - WARNING: /index.xhtml @22,110 target=“#{menuTab.action}”: Error writing 'action' on type com.menu.MenuTab
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM