title: Unable to define oracle datasource on Wildfly 10
body: <p>I'm using wildfly-10.1.0.Final and I'm trying to add an oracle Datasource:</p>
  
  <pre><code>&lt;datasource jndi-name="java:jboss/datasources/OracleDS" pool-name="OracleDS" enabled="true"&gt;
                  &lt;connection-url&gt;jdbc:oracle:thin:@localhost:1523/pdborcl&lt;/connection-url&gt;
                  &lt;driver&gt;oracle&lt;/driver&gt;
                  &lt;pool&gt;
                      &lt;min-pool-size&gt;1&lt;/min-pool-size&gt;
                      &lt;max-pool-size&gt;5&lt;/max-pool-size&gt;
                      &lt;prefill&gt;true&lt;/prefill&gt;
                  &lt;/pool&gt;
                  &lt;security&gt;
                      &lt;user-name&gt;admin&lt;/user-name&gt;
                      &lt;password&gt;admin&lt;/password&gt;
                  &lt;/security&gt;
              &lt;/datasource&gt;
  </code></pre>
  
  <p>And the driver:</p>
  
  <pre><code>    &lt;driver name="oracle" module="com.oracle.ojdbc"&gt;
                      &lt;driver-class&gt;oracle.jdbc.OracleDriver&lt;/driver-class&gt;
                  &lt;/driver&gt;
  </code></pre>
  
  <p>I have a module under modules/com/oracle/ojdbc/main:</p>
  
  <pre><code>&lt;module xmlns="urn:jboss:module:1.1" name="com.oracle.ojdbc"&gt;
    &lt;resources&gt;
      &lt;resource-root path="ojdbc7.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>But when I start the server I get: </p>
  
  <pre><code>11:14:30,226 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
      ("subsystem" =&gt; "datasources"),
      ("data-source" =&gt; "OracleDS")
  ]) - failure description: {
      "WFLYCTL0412: Required services that are not installed:" =&gt; ["jboss.jdbc-driver.oracle"],
      "WFLYCTL0180: Services with missing/unavailable dependencies" =&gt; [
          "org.wildfly.data-source.OracleDS is missing [jboss.jdbc-driver.oracle]",
          "jboss.driver-demander.java:jboss/datasources/OracleDS is missing [jboss.jdbc-driver.oracle]"
      ]
  }
  11:14:30,228 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
      ("subsystem" =&gt; "datasources"),
      ("data-source" =&gt; "OracleDS")
  ]) - failure description: {
      "WFLYCTL0412: Required services that are not installed:" =&gt; [
          "jboss.jdbc-driver.oracle",
          "jboss.jdbc-driver.oracle"
      ],
      "WFLYCTL0180: Services with missing/unavailable dependencies" =&gt; [
          "org.wildfly.data-source.OracleDS is missing [jboss.jdbc-driver.oracle]",
          "jboss.driver-demander.java:jboss/datasources/OracleDS is missing [jboss.jdbc-driver.oracle]",
          "org.wildfly.data-source.OracleDS is missing [jboss.jdbc-driver.oracle]"
      ]
  </code></pre>
  
  <p>I already read all the similar threads, including this one: <a href="https://stackoverflow.com/questions/10102826/unable-to-define-oracle-datasource-on-jboss-as-7">Unable to define oracle datasource on Jboss AS 7</a>. But, I couldn't seem to find the solution.</p>