如果在 Wildfly 13 EE8 上部署多个应用程序,Infinispan 命令调度程序问题
Infinispan command dispatcher problem if multiple applications are deployed on Wildfly 13 EE8
我新获得的基础架构确实有问题,也许有人可以为我指出问题所在或需要查看的位置。
我有多个应用程序(打包为 war,我也试过 ear's)使用相同的后端 jar(business/service jar 和包含 jar 的实体)
类似的东西:
app1.war
/WEB-INF/lib/
|--app1-logik.jar
|--common-business-logik.jar
|--common-entity-mappings.jar
app2.war
/WEB-INF/lib/
|--app2-logik.jar
|--common-business-logik.jar
|--common-entity-mappings.jar
对于我们的部署策略,无法将公共部分打包到单独的部署中。所以我必须坚持这一点。看起来只有带注释的有状态 bean 有问题
@Stateful @Named @SessionScoped @Clustered
。
这些很可能位于 common-business-logik.jar
第二个部署过程中出现问题(第一个按预期工作)。
Thrown in org.wildfly.clustering.server.dispatcher.MangedCommandDispatcherFactory.cre>ateCommandDispatcher(Object id, C context) line 98
"jboss.deployment.subunit.\"app2.ear\".\"app2.war\".component.StatefullBean.START" => "java.lang.Ille
galArgumentException: WFLYCLSV0017: A command dispatcher for StatefullBean already exists, but with a different command context slave1 | [Server:group1] Caused by: java.lang.IllegalArgumentException: WFLYCLSV0017: A command dispatcher for StatefullBean alrea
dy exists, but with a different command context",
slave1 | [Server:group1] "jboss.deployment.subunit.\"app2.ear\".\"app2.war\".component.StatefulBean2.START" => "java.lang.IllegalA
rgumentException: WFLYCLSV0017: A command dispatcher for StatefulBean2 already exists, but with a different command context slave1 | [Server:group1] Caused by: java.lang.IllegalArgumentException: WFLYCLSV0017: A command dispatcher for StatefulBean2 already e
xists, but with a different command context"
slave1 | [Server:group1] },
slave1 | [Server:group1] "WFLYCTL0288: One or more services were unable to start due to one or more indirect dependencies not being available." => {
slave1 | [Server:group1] "Services that were unable to start:" => [ slave1 | [Server:group1] "jboss.deployment.subunit.\"app2.ear\".\"app2.war\".moduleDeploymentRuntimeInformationStart",
slave1 | [Server:group1] "jboss.deployment.unit.\"app2.ear\".WeldEndInitService", slave1 | [Server:group1] "jboss.undertow.deployment.default-server.default-host./app2"
slave1 | [Server:group1] ], slave1 | [Server:group1] "Services that may be the cause:" =>
`
这是一个错误。我刚刚提交:
https://issues.jboss.org/browse/WFLY-11088
并将立即提交修复。
我新获得的基础架构确实有问题,也许有人可以为我指出问题所在或需要查看的位置。
我有多个应用程序(打包为 war,我也试过 ear's)使用相同的后端 jar(business/service jar 和包含 jar 的实体)
类似的东西:
app1.war
/WEB-INF/lib/
|--app1-logik.jar
|--common-business-logik.jar
|--common-entity-mappings.jar
app2.war
/WEB-INF/lib/
|--app2-logik.jar
|--common-business-logik.jar
|--common-entity-mappings.jar
对于我们的部署策略,无法将公共部分打包到单独的部署中。所以我必须坚持这一点。看起来只有带注释的有状态 bean 有问题
@Stateful @Named @SessionScoped @Clustered
。
这些很可能位于 common-business-logik.jar
第二个部署过程中出现问题(第一个按预期工作)。
Thrown in org.wildfly.clustering.server.dispatcher.MangedCommandDispatcherFactory.cre>ateCommandDispatcher(Object id, C context) line 98 "jboss.deployment.subunit.\"app2.ear\".\"app2.war\".component.StatefullBean.START" => "java.lang.Ille galArgumentException: WFLYCLSV0017: A command dispatcher for StatefullBean already exists, but with a different command context slave1 | [Server:group1] Caused by: java.lang.IllegalArgumentException: WFLYCLSV0017: A command dispatcher for StatefullBean alrea dy exists, but with a different command context",
slave1 | [Server:group1] "jboss.deployment.subunit.\"app2.ear\".\"app2.war\".component.StatefulBean2.START" => "java.lang.IllegalA rgumentException: WFLYCLSV0017: A command dispatcher for StatefulBean2 already exists, but with a different command context slave1 | [Server:group1] Caused by: java.lang.IllegalArgumentException: WFLYCLSV0017: A command dispatcher for StatefulBean2 already e xists, but with a different command context"
slave1 | [Server:group1] },
slave1 | [Server:group1] "WFLYCTL0288: One or more services were unable to start due to one or more indirect dependencies not being available." => {
slave1 | [Server:group1] "Services that were unable to start:" => [ slave1 | [Server:group1] "jboss.deployment.subunit.\"app2.ear\".\"app2.war\".moduleDeploymentRuntimeInformationStart", slave1 | [Server:group1] "jboss.deployment.unit.\"app2.ear\".WeldEndInitService", slave1 | [Server:group1] "jboss.undertow.deployment.default-server.default-host./app2"
slave1 | [Server:group1] ], slave1 | [Server:group1] "Services that may be the cause:" => `
这是一个错误。我刚刚提交: https://issues.jboss.org/browse/WFLY-11088 并将立即提交修复。