title: Oracle DB Connection: failure description: "WFLYJCA0041: Failed to load module for driver [com.oracle]
body: <p>Setting up connection to Oracle19C from Keycloak 12.0.3</p>
  <p>Receiving message: &quot;failure description: &quot;WFLYJCA0041: Failed to load module for driver [com.oracle]&quot;</p>
  <p>I've relooked x100 and can't seem to find what is missing. Could any kind soul review the below for what I have missed?</p>
  <p><em><strong>JAR File path:</strong></em>
  <strong>/modules/system/layers/keycloak/com/oracle/main
  module.xml
  ojdbc10.jar</strong></p>
  <p><em><strong>standalone.xml</strong></em></p>
  <pre><code>&lt;datasource jndi-name=&quot;java:jboss/datasources/KeycloakDS&quot; pool-name=&quot;KeycloakDS&quot; enabled=&quot;true&quot; use-java-context=&quot;true&quot; statistics-enabled=&quot;${wildfly.datasources.statistics-enabled:${wildfly.statistics-enabled:false}}&quot;&gt;
          &lt;connection-url&gt;jdbc:oracle:thin:@DBURL:1521:SID&lt;/connection-url&gt;
          &lt;driver&gt;oracle&lt;/driver&gt;
          &lt;pool&gt;
              &lt;min-pool-size&gt;5&lt;/min-pool-size&gt;
              &lt;max-pool-size&gt;100&lt;/max-pool-size&gt;
              &lt;prefill&gt;true&lt;/prefill&gt;
              &lt;flush-strategy&gt;IdleConnections&lt;/flush-strategy&gt;
          &lt;/pool&gt;
          &lt;security&gt;
              &lt;user-name&gt;USER&lt;/user-name&gt;
              &lt;password&gt;PASSWORD&lt;/password&gt;
          &lt;/security&gt;
          &lt;validation&gt;
              &lt;valid-connection-checker class-name=&quot;org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker&quot;/&gt;
              &lt;check-valid-connection-sql&gt;select 1 from dual&lt;/check-valid-connection-sql&gt;
              &lt;background-validation&gt;true&lt;/background-validation&gt;
              &lt;stale-connection-checker class-name=&quot;org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker&quot;/&gt;
              &lt;exception-sorter class-name=&quot;org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter&quot;/&gt;
          &lt;/validation&gt;
          &lt;timeout&gt;
              &lt;blocking-timeout-millis&gt;5000&lt;/blocking-timeout-millis&gt;
              &lt;idle-timeout-minutes&gt;5&lt;/idle-timeout-minutes&gt;
          &lt;/timeout&gt;
      &lt;/datasource&gt;
      &lt;driver name=&quot;oracle&quot; module=&quot;com.oracle&quot;&gt;
              &lt;driver-class&gt;oracle.jdbc.driver.OracleDriver&lt;/driver-class&gt;
              &lt;xa-datasource-class&gt;oracle.jdbc.xa.client.OracleXADataSource&lt;/xa-datasource-class&gt;
          &lt;/driver&gt;
  </code></pre>
  <p><em><strong>module.xml</strong></em></p>
  <pre><code> &lt;?xml version=”1.0&quot; ?&gt;&lt;?xml version='1.0' encoding='UTF-8'?&gt;
   &lt;module xmlns=”urn:jboss:module:1.3&quot; name=”com.oracle”&gt;
   &lt;resources&gt;
   &lt;resource-root path=”ojdbc10.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>