【发布时间】:2013-04-18 07:48:17
【问题描述】:
我正在尝试将 EAR 部署到 Glassfish,它在 EAR 中使用 JSF 和 WAR 文件有 faces-config.xml 即在 WEB-INF 下。但是当我尝试部署到 Glassfish 服务器时,我遇到了以下异常:
java.lang.IllegalStateException: ContainerBase.addChild: start
org.apache.catalina.LifecycleException: java.lang.RuntimeException:
com.sun.faces.config.ConfigurationException:
java.util.concurrent.ExecutionException:
com.sun.faces.config.ConfigurationException:
Unable to parse document 'jndi:/server/WEB-INF/faces-config.xml': null
我不确定是什么问题,Eclipse 在编写 faces-config.xml 时没有给我任何错误,但 Glassfish 给出了上述错误。是的,我在 WEB-INF 文件夹中有 faces-config.xml。
这是faces-config.xml文件的示例:
<?xml version='1.0' encoding='UTF-8'?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
<!-- there are other elements here -->
</faces-config>
我无法发布整个 xml 文件,因为它很大而且仅供参考,我正在尝试部署 Duke 的书店 Oracle 示例 Java EE 应用程序,但我遇到了这个错误。我尝试在 Google 中搜索,但没有得到任何有用的结果。你能帮帮我吗?如果需要,我可以提供更多信息。
我的 faces-config.xml 可以在这里找到:http://temp-share.com/show/gFHKBRxsY
【问题讨论】:
标签: java jsf glassfish glassfish-3