我的环境:
JSF 2.3,莫哈拉 2.3.9.payara-p2
PrimeFaces 7.0
帕亚拉 5.192
OmniFaces 3.3
Java EE 8 Maven 项目
NetBeans 11.1
我创建了一个 Faces 流程:
文件夹“flotTransfer”仅包含 2 个文件(目前)flotTransfert-flow.xml 和 flotTransfert.xhtml。
我无法部署应用程序。我收到此消息:“加载应用程序时出现异常:java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: java.lang.IllegalStateException: Flow with id "flotTransfert"并且定义DocumentId "" 已经存在。|#] "。
我不明白为什么会出现此错误(为什么“已经存在”?)。服务器上没有部署其他应用程序。
flotTransfert-flow.xml 的内容:
<faces-config version="2.3"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_3.xsd">
<flow-definition id="flotTransfert">
<flow-return id="sortieFlot">
<from-outcome>/listeComptes</from-outcome>
</flow-return>
</flow-definition>
</faces-config>
如果我重命名此文件,则不会再出现错误,并且应用程序已部署在服务器上,但显然,人脸流程不起作用。
如果我保留文件但删除文件的所有内容(我注释掉所有行),我会得到同样的错误。
我在另一个应用程序中具有几乎相同的面孔流(文件夹中只有更多页面),但使用 Java EE 7 和 Payara 5.184 并且没有 OmniFaces 并且流程有效。