title: "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.mysql"]
body: <p>I am trying to add a mysql datasource to my wildfly(Jboss15.0.0) server.
  But I encounter the following error:</p>
  
  <pre><code>WFLYCTL0013: Operation ("add") failed - address: ([
      ("subsystem" =&gt; "datasources"),
      ("data-source" =&gt; "MySqlDS")
  ]) - failure description: {
      "WFLYCTL0412: Required services that are not installed:" =&gt; ["jboss.jdbc-driver.mysql"],
      "WFLYCTL0180: Services with missing/unavailable dependencies" =&gt; [
          "org.wildfly.data-source.MySqlDS is missing [jboss.jdbc-driver.mysql]",
          "jboss.driver-demander.java:/MySqlDS is missing [jboss.jdbc-driver.mysql]"
      ]
  }
  09:22:10,385 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
      ("subsystem" =&gt; "datasources"),
      ("data-source" =&gt; "MySqlDS")
  ]) - failure description: {
      "WFLYCTL0412: Required services that are not installed:" =&gt; [
          "jboss.jdbc-driver.mysql",
          "jboss.jdbc-driver.mysql"
      ],
      "WFLYCTL0180: Services with missing/unavailable dependencies" =&gt; [
          "org.wildfly.data-source.MySqlDS is missing [jboss.jdbc-driver.mysql]",
          "jboss.driver-demander.java:/MySqlDS is missing [jboss.jdbc-driver.mysql]",
          "org.wildfly.data-source.MySqlDS is missing [jboss.jdbc-driver.mysql]"
      ]
  }
  </code></pre>
  
  <p>Here is my module.xml:</p>
  
  <pre><code>&lt;module xmlns="urn:jboss:module:1.0" name="mysql"&gt;
      &lt;resources&gt;
          &lt;resource-root path="mysql-connector-java-5.1.46-bin.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>and here is my code to set the datasource:</p>
  
  <pre><code>    &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;datasource jta="true" jndi-name="java:/MySqlDS" pool-name="MySqlDS" use-java-context="true" use-ccm="true"&gt;
                          &lt;connection-url&gt;jdbc:mysql://localhost:3306/onlinestock?characterEncoding=UTF8&amp;amp;useSSL=false&amp;amp;serverTimezone=GMT%2B8&amp;amp;allowPublicKeyRetrieval=true&lt;/connection-url&gt;
                          &lt;driver&gt;mysql&lt;/driver&gt;
                          &lt;transaction-isolation&gt;TRANSACTION_READ_COMMITTED&lt;/transaction-isolation&gt;
                          &lt;pool&gt;
                              &lt;prefill&gt;true&lt;/prefill&gt;
                              &lt;use-strict-min&gt;false&lt;/use-strict-min&gt;
                              &lt;flush-strategy&gt;FailingConnectionOnly&lt;/flush-strategy&gt;
                          &lt;/pool&gt;
                          &lt;security&gt;
                              &lt;user-name&gt;root&lt;/user-name&gt;
                              &lt;password&gt;root&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="mysql" module="com.mysql"&gt;
                              &lt;xa-datasource-class&gt;com.mysql.jdbc.Driver&lt;/xa-datasource-class&gt;
                          &lt;/driver&gt;
                      &lt;/drivers&gt;
  &lt;/datasources&gt;
  </code></pre>
  
  <p>Why the server can not see my mysql-connector.
  the module.xml is under the floder of JBOSS_HOME/..../modules/..../mysql/main</p>