问题与ActiveMQ 5.9交互jboss eap6 [英] issues interating jboss eap6 with ActiveMQ 5.9

查看:115
本文介绍了问题与ActiveMQ 5.9交互jboss eap6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在tcp:// localhost:61616的jvm中运行了activeMQ服务器


然后我将activemq-rar-5.9.0.redhat-610379解压缩


适配器



\运行时\jboss-eappmodules\system中的

\layers\base\org\apache\activemq\main


在适配器中,我有Meta-INF



在jboss EAP6中,standalone.xml我已经指定了



但是当我启动服务器时..我收到以下错误



**


12:05:39,910错误[org.jboss.as.controller.management-operation]
(ServerService线程池-40)JBAS014612:操作( add)失败
-地址:([
(子系统 =>资源适配器),
( resource-adapter => activemq-rar.rar)])-失败描述: JBAS010473:失败RA
[org.apache.activemq]的广告模块


**

解决方案

您的问题缺少一些信息,但是在查看您键入的内容时,听起来好像您丢失了需要放在模块目录中的module.xml(\ 运行时 jboss-eap模块系统层基础组织 apache activemq main)



对于ActiveMQ RAR版本5.9的module.xml如下所示

 < module xmlns = urn:jboss:module:1.1名称= org.apache.activemq xmlns:xsi = http://www.w3.org/2001/XMLSchema-instance> 
< resources>
< resource-root path =。 />
< resource-root path = activemq-broker-5.9.0.jar />
< resource-root path = activemq-client-5.9.0.jar />
< resource-root path = activemq-jms-pool-5.9.0.jar />
< resource-root path = activemq-kahadb-store-5.9.0.jar />
< resource-root path = activemq-openwire-legacy-5.9.0.jar />
< resource-root path = activemq-pool-5.9.0.jar />
< resource-root path = activemq-protobuf-1.1.jar />
< resource-root path = activemq-ra-5.9.0.jar />
< resource-root path = activemq-spring-5.9.0.jar />
< resource-root path = aopalliance-1.0.jar />
< resource-root path = commons-pool-1.6.jar />
< resource-root path = commons-logging-1.1.3.jar />
< resource-root path = hawtbuf-1.9.jar />
< resource-root path = spring-aop-3.2.4.RELEASE.jar />
< resource-root path = spring-beans-3.2.4.RELEASE.jar />
< resource-root path = spring-context-3.2.4.RELEASE.jar />
< resource-root path = spring-core-3.2.4.RELEASE.jar />
< resource-root path = spring-expression-3.2.4.RELEASE.jar />
< resource-root path = xbean-spring-3.14.jar />
< / resources>
< exports>
<排除路径= org / springframework / ** />
< exclude path = org / apache / xbean / ** />
< exclude path = org / apache / commons / ** />
< exclude path = org / aopalliance / ** />
<排除路径= 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>

此外,您实际上不应该在模块,系统,层下创建自定义模块base\,因为它由JBoss使用,可以在补丁程序和新发行版中进行修改。最好是创建自己的层,或者直接在/ modules文件夹下直接创建模块。



如前所述,尤其是在独立设置中,可能是直接直接部署RAR更容易。


I have the activeMQ server running in the jvm at tcp://localhost:61616

then i place the activemq-rar-5.9.0.redhat-610379 unzipped

adaptor

in the

\runtimes\jboss-eap\modules\system\layers\base\org\apache\activemq\main

in the adaptor i have the Meta-INF

in the jboss EAP6 , standalone.xml i have specified the

But when i start the server ... i get the below error

**

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

**

解决方案

Your question is missing some information, but in reviewing what you have typed it sounds like you are missing the module.xml that needs to go in your module directory (\runtimes\jboss-eap\modules\system\layers\base\org\apache\activemq\main)

For ActiveMQ RAR version 5.9 a module.xml would look like the following

<module xmlns="urn:jboss:module:1.1" name="org.apache.activemq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <resources>
    <resource-root path="."/>
    <resource-root path="activemq-broker-5.9.0.jar"/>
    <resource-root path="activemq-client-5.9.0.jar"/>
    <resource-root path="activemq-jms-pool-5.9.0.jar"/>
    <resource-root path="activemq-kahadb-store-5.9.0.jar"/>
    <resource-root path="activemq-openwire-legacy-5.9.0.jar"/>
    <resource-root path="activemq-pool-5.9.0.jar"/>
    <resource-root path="activemq-protobuf-1.1.jar"/>
    <resource-root path="activemq-ra-5.9.0.jar"/>
    <resource-root path="activemq-spring-5.9.0.jar"/>
    <resource-root path="aopalliance-1.0.jar"/>
    <resource-root path="commons-pool-1.6.jar"/>
    <resource-root path="commons-logging-1.1.3.jar"/>
    <resource-root path="hawtbuf-1.9.jar"/>
    <resource-root path="spring-aop-3.2.4.RELEASE.jar"/>
    <resource-root path="spring-beans-3.2.4.RELEASE.jar"/>
    <resource-root path="spring-context-3.2.4.RELEASE.jar"/>
    <resource-root path="spring-core-3.2.4.RELEASE.jar"/>
    <resource-root path="spring-expression-3.2.4.RELEASE.jar"/>
    <resource-root path="xbean-spring-3.14.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>

Also, you should really not create custom modules under \modules\system\layers\base\ as this is used by JBoss and could be modified during patches and new releases. You are best to either create your own layer or simply create you module directly under the /modules folder.

As previous answer has noted, especially in a standalone setup it might be easier to just directly deploy the RAR instead.

这篇关于问题与ActiveMQ 5.9交互jboss eap6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆