title: WFLYCTL0412: Required services that are not installed:
body: <p>I'm trying to add a datasource in Wildfly 10.0, but when i test connection this the error message that throws:</p>
  
  <pre><code>Unexpected HTTP response: 500
  
  Request
  {
      "address" =&gt; [
          ("subsystem" =&gt; "datasources"),
          ("data-source" =&gt; "PostgreCrawlazo")
      ],
      "operation" =&gt; "test-connection-in-pool"
  }
  
  Response
  
  Internal Server Error
  {
      "outcome" =&gt; "failed",
      "failure-description" =&gt; "WFLYJCA0040: failed to invoke operation: WFLYJCA0042: failed to match pool. Check JndiName: java:/crawlazo",
      "rolled-back" =&gt; true,
      "response-headers" =&gt; {"process-state" =&gt; "reload-required"}
  }
  </code></pre>
  
  <p>The error from the server log:</p>
  
  <pre><code>2016-09-01 16:28:40,524 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
      ("subsystem" =&gt; "datasources"),
      ("data-source" =&gt; "PostgreCrawlazo")
  ]) - failure description: {
      "WFLYCTL0412: Required services that are not installed:" =&gt; [
          "jboss.jdbc-driver.postgres",
          "jboss.jdbc-driver.postgres"
      ],
      "WFLYCTL0180: Services with missing/unavailable dependencies" =&gt; [
          "jboss.driver-demander.java:/crawlazo is missing [jboss.jdbc-driver.postgres]",
          "org.wildfly.data-source.PostgreCrawlazo is missing [jboss.jdbc-driver.postgres]",
          "org.wildfly.data-source.PostgreCrawlazo is missing [jboss.jdbc-driver.postgres]"
      ]
  }
  </code></pre>
  
  <p>i'm replicating the same configuration files from standalone.xml and module.xml</p>
  
  <p>here is part how i set up the datasource in standalone.xml:</p>
  
  <pre><code> &lt;datasource jndi-name="java:/crawlazo" pool-name="PostgreCrawlazo" enabled="true"&gt;
                      &lt;connection-url&gt;jdbc:postgresql://x.x.x.x:5432/crawlazo&lt;/connection-url&gt;
                      &lt;driver&gt;postgres&lt;/driver&gt;
                      &lt;pool&gt;
                          &lt;min-pool-size&gt;1&lt;/min-pool-size&gt;
                          &lt;max-pool-size&gt;40&lt;/max-pool-size&gt;
                      &lt;/pool&gt;
                      &lt;security&gt;
                          &lt;user-name&gt;someUser&lt;/user-name&gt;
                          &lt;password&gt;somePasswd&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="postgres" module="org.postgres"&gt;
                          &lt;driver-class&gt;org.postgresql.Driver&lt;/driver-class&gt;
                      &lt;/driver&gt;
              &lt;/drivers&gt;
  </code></pre>
  
  <p>and the module.xml:</p>
  
  <pre><code>&lt;module xmlns="urn:jboss:module:1.0" name="org.postgresql"&gt;
      &lt;resources&gt;
          &lt;resource-root path="postgresql-9.2-1004.jdbc3.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 a postgresql-9.2-1004.jdbc3.jar in the deployment folder.</p>
  
  <p>Why this error appears? what i could have forgotten to config?</p>