【发布时间】:2014-10-25 16:34:05
【问题描述】:
关于 Wildfly 8.1 中两个应用程序的部署顺序,我遇到了一些问题。
问题是app2.ear的一些模块依赖于app1.ear的模块,但是app1.ear是在app2.ear之后部署的。
我尝试为 app1 指定一个依赖项,如下所示:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<deployment>
<dependencies>
<module name="app2.ear" />
</dependencies>
</deployment>
</jboss-deployment-structure>
但运气不好,app1.ear 部署失败并出现此错误:
{"JBAS014671: 失败的服务" ... 原因:org.jboss.modules.ModuleNotFoundException: app2.ear:main"}}
知道是否可能以及如何添加它?
提前致谢。
【问题讨论】:
标签: java jakarta-ee deployment jboss wildfly