java - 如果在 Wildfly 13 EE8 上部署多个应用程序,Infinispan 命令调度程序会出现问题

标签 java maven wildfly infinispan java-ee-8

我新获得的基础设施确实存在问题,也许有人可以为我指出问题出在哪里或在哪里查看。

我有多个应用程序(打包为war,我也尝试过ear)使用相同的后端jar(业务/服务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

对于我们的部署策略,不可能将公共(public)部分打包到单独的部署中。所以我必须坚持这一点。看起来只有带有注释的有状态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 并将立即提交修复程序。

关于java - 如果在 Wildfly 13 EE8 上部署多个应用程序,Infinispan 命令调度程序会出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52535833/

相关文章:

java - 在 IntelliJ 中设置 JavaFX

java - JSP EL 中 LENGTH[...] 和 fn :length(. ..) 的区别

java - 如何修复损坏的 Eclipse Indigo JEE?

java - 如何为 Filebeat 配置 JBoss JsonFormatter (WildFly 14)

java - Wildfly Swarm 安全域配置

Java 溢出问题

java - 我如何只获得带有反射的可实例化类

java - UnsatisfiedLinkError : no sqljdbc_auth in java. 库.path

spring - Maven 和 Spring = 无法创建应用程序上下文 : Unable to locate Spring NamespaceHandler

java - WildFly 8.1.0.Final 上的 Firebird 数据源出现 "Failed to load module"错误