【问题标题】:How to configure activemq in wildfly 10如何在wildfly 10中配置activemq
【发布时间】:2017-09-21 14:11:15
【问题描述】:

所以,我正在尝试将 activemq 配置为在我的 wildfly 10 实例中工作,但是在遵循了这么多关于如何执行此操作的指南之后,我无法弄清楚为什么我在启动我的 jboss 时会收到此错误服务器。

我的 jar 文件列表 modules\system\layers\base\org\apache\activemq\main

我的模块.xml

<?xml version='1.0' encoding='UTF-8'?>  
<module xmlns="urn:jboss:module:1.3" name="org.apache.activemq" slot="main">  
  <resources>  
    <resource-root path="."/>
    <resource-root path="activemq-amqp-5.14.5.jar"/>
    <resource-root path="activemq-broker-5.14.5.jar"/>  
    <resource-root path="activemq-client-5.14.5.jar"/>  
    <resource-root path="activemq-jms-pool-5.14.5.jar"/>  
    <resource-root path="activemq-kahadb-store-5.14.5.jar"/>
    <resource-root path="activemq-mqtt-5.14.5.jar"/>        
    <resource-root path="activemq-openwire-legacy-5.14.5.jar"/>  
    <resource-root path="activemq-pool-5.14.5.jar"/>  
    <resource-root path="activemq-protobuf-1.1.jar"/>  
    <resource-root path="activemq-ra-5.14.5.jar"/>  
    <resource-root path="activemq-spring-5.14.5.jar"/>  
    <resource-root path="aopalliance-1.0.jar"/>  
    <resource-root path="commons-net-3.5.jar"/>  
    <resource-root path="hawtbuf-1.11.jar"/> 
    <resource-root path="hawtdispatch-1.22.jar"/> 
    <resource-root path="hawtdispatch-transport-1.22.jar"/>
    <resource-root path="mqtt-client-1.14.jar"/>
    <resource-root path="proton-j-0.16.0.jar"/>
    <resource-root path="spring-aop-4.1.9.RELEASE.jar"/>  
    <resource-root path="spring-beans-4.1.9.RELEASE.jar"/>  
    <resource-root path="spring-context-4.1.9.RELEASE.jar"/>  
    <resource-root path="spring-core-4.1.9.RELEASE.jar"/>  
    <resource-root path="spring-expression-4.1.9.RELEASE.jar"/>  
    <resource-root path="xbean-spring-4.2.jar"/>  
  </resources>  
  <exports>
    <exclude path="org/springframework/**"/>
    <exclude path="org/apache/xbean/**"/>
    <exclude path="org/apache/commons/**"/>
    <exclude path="org/aopalliance/**"/>
    <exclude path="org/fusesource/**"/>
  </exports>
  <dependencies>
    <module name="javax.api"/>
    <module name="org.slf4j"/>
    <module name="javax.resource.api"/>
    <module name="javax.jms.api"/>
    <module name="javax.management.j2ee.api"/>
  </dependencies>
</module>  

我的standalone-full.xml 配置

<subsystem xmlns="urn:jboss:domain:resource-adapters:4.0">
    <resource-adapters>  
            <resource-adapter id="activemq-rar">  
              <module slot="main" id="org.apache.activemq" />  
                <transaction-support>XATransaction</transaction-support>  
                <config-property name="ServerUrl">  
                    tcp://localhost:61616?jms.rmIdFromConnectionId=true  
                </config-property>  
                <connection-definitions>  
                    <connection-definition class-name="org.apache.activemq.ra.ActiveMQManagedConnectionFactory" jndi-name="java:/ConnectionFactory" enabled="true" pool-name="ConnectionFactory">  
                        <xa-pool>  
                            <min-pool-size>1</min-pool-size>  
                            <max-pool-size>20</max-pool-size>  
                            <prefill>false</prefill>  
                            <is-same-rm-override>false</is-same-rm-override>  
                        </xa-pool>  
                    </connection-definition>  
                </connection-definitions>  
                <admin-objects>  
                    <admin-object class-name="org.apache.activemq.command.ActiveMQQueue" jndi-name="java:/queue/test" use-java-context="true" pool-name="test">  
                        <config-property name="PhysicalName">  
                            queue/test  
                        </config-property>  
                    </admin-object>  
                </admin-objects>  
            </resource-adapter>  
 </resource-adapters> 
</subsystem>

每次我启动 Wildfly 10 服务器时都会收到此错误

ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 55) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "resource-adapters"),
("resource-adapter" => "activemq-rar")
]) - failure description: "WFLYJCA0073: Failed to load module for RA      [org.apache.activemq]"

有人可以帮助我吗?

【问题讨论】:

    标签: jboss activemq wildfly


    【解决方案1】:

    使用standalone-full.xml 启动您的jboss 服务器

    如果您在 Windows 上,请使用以下命令

    standalone.bat -c standalone-full.xml
    

    【讨论】:

      猜你喜欢
      • 2017-03-13
      • 2017-04-14
      • 2016-01-09
      • 1970-01-01
      • 2019-11-14
      • 2019-10-09
      • 2018-08-14
      • 1970-01-01
      • 2021-11-24
      相关资源
      最近更新 更多