title: Setup MariaDB XA on WildFly through UI
body: <p>Similar to <a href="https://stackoverflow.com/questions/39868226/how-to-setup-mariadb-jndi-on-wildfly-10">How to setup MariaDB JNDI on Wildfly 10?</a> but specifically done through the Web UI.</p>
  
  <p>I can create the non-XA data source with no issues but I am having issues creating the XA version.</p>
  
  <p>I did the deployment of the mariadb-client.jar using the WildFly deploy UI with no issues.  I can verify that the non-XA datasource works well.</p>
  
  <p>However, when I do the same approach with the XA driver, when testing the connection I get the following error on the logs (not visible on the error dialog</p>
  
  <blockquote>
    <p>Caused by: javax.resource.ResourceException: IJ031101: XADataSourceClass is undefined
        at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXADataSource(XAManagedConnectionFactory.java:621))</p>
  </blockquote>
  
  <p>When I try to configure the driver configuration manually I just get Unknown Error and the datasource does not even get created</p>
  
  <pre><code>"failure-description" =&gt; {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" =&gt; {"Operation step-1" =&gt; {
      "WFLYCTL0412: Required services that are not installed:" =&gt; ["jboss.jdbc-driver.MariaDBXA"],
      "WFLYCTL0180: Services with missing/unavailable dependencies" =&gt; [
          "org.wildfly.data-source.PacXA is missing [jboss.jdbc-driver.MariaDBXA]",
          "jboss.driver-demander.java:/PacXA is missing [jboss.jdbc-driver.MariaDBXA]"
      ]
  </code></pre>
  
  <p>The driver classes I am using are as noted in <a href="https://issues.jboss.org/browse/JBEAP-2405" rel="nofollow noreferrer">https://issues.jboss.org/browse/JBEAP-2405</a> where I put it in the screen that accepts them.</p>
  
  <ul>
  <li>driver-class: org.mariadb.jdbc.Driver</li>
  <li>xa-datasource-class: org.mariadb.jdbc.MariaDbDataSource (NOT org.mariadb.jdbc.MySQLDataSource)</li>
  </ul>
  
  <p>Also when looking at the XML when selecting from JAR vs entering the configuration on screen, nothing gets populated on <code>xa-datasource-class</code>.  I know I can edit the XML but like I said I wanted to do it through the administration console.</p>