title: How to configure activemq in wildfly 10
body: <p>So, I'm trying to configure the activemq to work in my wildfly 10 instance, but after following so many guides on how to do this I can't figure out why I'm getting this error when I start my jboss server. </p>
  
  <p>List of my jar files modules\system\layers\base\org\apache\activemq\main
  <a href="https://i.stack.imgur.com/iJt4K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iJt4K.png" alt="List of my jar files modules\system\layers\base\org\apache\activemq\main"></a></p>
  
  <p>My module.xml</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;  
  &lt;module xmlns="urn:jboss:module:1.3" name="org.apache.activemq" slot="main"&gt;  
    &lt;resources&gt;  
      &lt;resource-root path="."/&gt;
      &lt;resource-root path="activemq-amqp-5.14.5.jar"/&gt;
      &lt;resource-root path="activemq-broker-5.14.5.jar"/&gt;  
      &lt;resource-root path="activemq-client-5.14.5.jar"/&gt;  
      &lt;resource-root path="activemq-jms-pool-5.14.5.jar"/&gt;  
      &lt;resource-root path="activemq-kahadb-store-5.14.5.jar"/&gt;
      &lt;resource-root path="activemq-mqtt-5.14.5.jar"/&gt;        
      &lt;resource-root path="activemq-openwire-legacy-5.14.5.jar"/&gt;  
      &lt;resource-root path="activemq-pool-5.14.5.jar"/&gt;  
      &lt;resource-root path="activemq-protobuf-1.1.jar"/&gt;  
      &lt;resource-root path="activemq-ra-5.14.5.jar"/&gt;  
      &lt;resource-root path="activemq-spring-5.14.5.jar"/&gt;  
      &lt;resource-root path="aopalliance-1.0.jar"/&gt;  
      &lt;resource-root path="commons-net-3.5.jar"/&gt;  
      &lt;resource-root path="hawtbuf-1.11.jar"/&gt; 
      &lt;resource-root path="hawtdispatch-1.22.jar"/&gt; 
      &lt;resource-root path="hawtdispatch-transport-1.22.jar"/&gt;
      &lt;resource-root path="mqtt-client-1.14.jar"/&gt;
      &lt;resource-root path="proton-j-0.16.0.jar"/&gt;
      &lt;resource-root path="spring-aop-4.1.9.RELEASE.jar"/&gt;  
      &lt;resource-root path="spring-beans-4.1.9.RELEASE.jar"/&gt;  
      &lt;resource-root path="spring-context-4.1.9.RELEASE.jar"/&gt;  
      &lt;resource-root path="spring-core-4.1.9.RELEASE.jar"/&gt;  
      &lt;resource-root path="spring-expression-4.1.9.RELEASE.jar"/&gt;  
      &lt;resource-root path="xbean-spring-4.2.jar"/&gt;  
    &lt;/resources&gt;  
    &lt;exports&gt;
      &lt;exclude path="org/springframework/**"/&gt;
      &lt;exclude path="org/apache/xbean/**"/&gt;
      &lt;exclude path="org/apache/commons/**"/&gt;
      &lt;exclude path="org/aopalliance/**"/&gt;
      &lt;exclude path="org/fusesource/**"/&gt;
    &lt;/exports&gt;
    &lt;dependencies&gt;
      &lt;module name="javax.api"/&gt;
      &lt;module name="org.slf4j"/&gt;
      &lt;module name="javax.resource.api"/&gt;
      &lt;module name="javax.jms.api"/&gt;
      &lt;module name="javax.management.j2ee.api"/&gt;
    &lt;/dependencies&gt;
  &lt;/module&gt;  
  </code></pre>
  
  <p>My standalone-full.xml configuration</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:resource-adapters:4.0"&gt;
      &lt;resource-adapters&gt;  
              &lt;resource-adapter id="activemq-rar"&gt;  
                &lt;module slot="main" id="org.apache.activemq" /&gt;  
                  &lt;transaction-support&gt;XATransaction&lt;/transaction-support&gt;  
                  &lt;config-property name="ServerUrl"&gt;  
                      tcp://localhost:61616?jms.rmIdFromConnectionId=true  
                  &lt;/config-property&gt;  
                  &lt;connection-definitions&gt;  
                      &lt;connection-definition class-name="org.apache.activemq.ra.ActiveMQManagedConnectionFactory" jndi-name="java:/ConnectionFactory" enabled="true" pool-name="ConnectionFactory"&gt;  
                          &lt;xa-pool&gt;  
                              &lt;min-pool-size&gt;1&lt;/min-pool-size&gt;  
                              &lt;max-pool-size&gt;20&lt;/max-pool-size&gt;  
                              &lt;prefill&gt;false&lt;/prefill&gt;  
                              &lt;is-same-rm-override&gt;false&lt;/is-same-rm-override&gt;  
                          &lt;/xa-pool&gt;  
                      &lt;/connection-definition&gt;  
                  &lt;/connection-definitions&gt;  
                  &lt;admin-objects&gt;  
                      &lt;admin-object class-name="org.apache.activemq.command.ActiveMQQueue" jndi-name="java:/queue/test" use-java-context="true" pool-name="test"&gt;  
                          &lt;config-property name="PhysicalName"&gt;  
                              queue/test  
                          &lt;/config-property&gt;  
                      &lt;/admin-object&gt;  
                  &lt;/admin-objects&gt;  
              &lt;/resource-adapter&gt;  
   &lt;/resource-adapters&gt; 
  &lt;/subsystem&gt;
  </code></pre>
  
  <p>And everytime I start my Wildfly 10 server I'm getting this ERROR</p>
  
  <pre><code>ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 55) WFLYCTL0013: Operation ("add") failed - address: ([
  ("subsystem" =&gt; "resource-adapters"),
  ("resource-adapter" =&gt; "activemq-rar")
  ]) - failure description: "WFLYJCA0073: Failed to load module for RA      [org.apache.activemq]"
  </code></pre>
  
  <p>Can anybody help me? </p>