title: Error when configuring MariaDB driver on Wildfly server
body: <p>I am trying to configure a MariaDB datasource on Wildfly. This seems like it should be a simple operation, but I can't seem to get the datasource module to load properly. I have added the maria-java-client-1.1.8.jar archive and a module.xml file to the wildfly-8.2.0.Final/modules/com/mariadb/main directory. The module.xml file is as follows:</p>
  
  <pre><code>&lt;module xmlns:"urn:jboss:module:1.1" name="com.mariadb"&gt;
      &lt;resources&gt;
          &lt;resource-root path="mariadb-java-client-1.1.8.jar"/&gt;
      &lt;/resources&gt;
      &lt;dependencies&gt;
          &lt;module name="javax.api"/&gt;
          &lt;module name="javax.transaction.api"/&gt;
      &lt;/dependencies&gt;
  &lt;/module&gt;
  </code></pre>
  
  <p>I have also added a driver entry to the standalone.xml file as follows:</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:datasources:2.0"&gt;
      &lt;datasources&gt;
          &lt;datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true"&gt;
                  &lt;connection-url&gt;jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE&lt;/connection-url&gt;
              &lt;driver&gt;h2&lt;/driver&gt;
              &lt;security&gt;
                  &lt;user-name&gt;sa&lt;/user-name&gt;
                  &lt;password&gt;sa&lt;/password&gt;
              &lt;/security&gt;
          &lt;/datasource&gt;
          &lt;drivers&gt;
              &lt;driver name="h2" module="com.h2database.h2"&gt;
                  &lt;xa-datasource-class&gt;org.h2.jdbcx.JdbcDataSource&lt;/xa-datasource-class&gt;
              &lt;/driver&gt;
              &lt;driver name="mariadb" module="com.mariadb"/&gt;
          &lt;/drivers&gt;
      &lt;/datasources&gt;
  &lt;/subsystem&gt;
  </code></pre>
  
  <p>Note that I have only included the driver entry for now. I will add the datasource entry after I get the module to load properly.</p>
  
  <p>Now when I startup the server I get the following error:</p>
  
  <pre><code>14:14:46,570 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 26) JBAS014613: Operation ("add") failed - address: ([
      ("subsystem" =&gt; "datasources"),
      ("jdbc-driver" =&gt; "mariadb")
  ]) - failure description: "JBAS010441: Failed to load module for driver [com.mariadb]"
  </code></pre>
  
  <p>According to everything that I have read, this is the proper way to configure the driver, but it is not working for me. Does anyone know what I am doing wrong?</p>
  
  <p>Thanks in advance for your help!</p>