在移植到新服务器时复制 KieServerMDB

问题描述

我正在将在 JBoss EAP 7.3 上运行的 JBPM 笔记本电脑配置移动到运行相同配置的测试服务器。 Business Central 和我的 sql Server JDBC 部署似乎可以在测试服务器上运行。然而,在

  • 压缩
  • 放入 git repo
  • 从 Git 存储库中检索
  • 解压我的 kie-server.war
我看到了
0:01:21,314 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") Failed - address: ([("deployment" => "kie-server.war")])
 - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"kie-server.war\".PARSE" => "WFLYSRV0153: Failed to process phase PARSE of deployment \"kie-serve
r.war\"
    Caused by: java.lang.IllegalArgumentException: WFLYEE0040: A component named 'KieServerMDB' is already defined in this module"}}
10:01:21,330 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 47) WFLYSRV0010: Deployed "kie-server.war" (runtime-name : "kie-server.war")
10:01:21,330 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 47) WFLYSRV0010: Deployed "business-central.war" (runtime-name : "business-central.war")
10:01:21,330 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which Failed to start:      service jboss.deployment.unit."kie-server.war".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "kie-server.war"

在服务器启动期间。 bean 是在 weblogic-ejb-jar.xml 中定义的 - 但它还能在哪里定义?

 <weblogic-enterprise-bean>
    <ejb-name>KieServerMDB</ejb-name>
    <message-driven-descriptor>
      <destination-jndi-name>jms/KIE.SERVER.REQUEST</destination-jndi-name>
      <connection-factory-jndi-name>jms/cf/KIE.SERVER.REQUEST</connection-factory-jndi-name>
    </message-driven-descriptor>
    <resource-description>
      <res-ref-name>org.kie.server.jms.KieServerMDB/factory</res-ref-name>
      <jndi-name>jms/cf/KIE.SERVER.RESPONSE</jndi-name>
    </resource-description>
  </weblogic-enterprise-bean>

解决方法

解决了这个问题。在我将代码移植到新服务器并将其与 RedHat 代码结合的过程中,重复了几个 JAR。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...