title: Unable to use postgres with keycloak
body: <p>I am trying to use postgres with keycloak. following <a href="https://www.keycloak.org/docs/latest/server_installation/#_database" rel="noreferrer">Doc</a> </p>
  
  <pre><code>$ ls keycloak-9.0.0/modules/system/layers/keycloak/org/postgresql/main
    config.xml  postgresql-42.2.10.jar
  </code></pre>
  
  <p>This is the config.xml file.
  <strong>config.xml</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" ?&gt;
  &lt;module xmlns="urn:jboss:module:1.3" name="org.postgresql"&gt;
  
      &lt;resources&gt;
          &lt;resource-root path="postgresql-42.2.10.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>These are the changes that i have made in standalone.xml
  <strong>standalone.xml</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;datasources&gt;
  
      &lt;datasource jndi-name="java:jboss/datasources/KeycloakDS" pool-name="KeycloakDS" enabled="true" use-java-context="true"&gt;
        &lt;connection-url&gt;jdbc:postgresql://localhost:5432/test&lt;/connection-url&gt;
        &lt;driver&gt;postgresql&lt;/driver&gt;
        &lt;pool&gt;
             &lt;max-pool-size&gt;20&lt;/max-pool-size&gt;
        &lt;/pool&gt;
        &lt;security&gt;
             &lt;user-name&gt;postgres&lt;/user-name&gt;
             &lt;password&gt;StrongPassword&lt;/password&gt;
        &lt;/security&gt;
     &lt;/datasource&gt;
  
      &lt;drivers&gt;
           &lt;driver name="postgresql" module="org.postgresql"&gt;
                &lt;xa-datasource-class&gt;org.postgresql.xa.PGXADataSource&lt;/xa-datasource-class&gt;
            &lt;/driver&gt;
       &lt;/drivers&gt;
  
  
  &lt;/datasources&gt;
  
  &lt;default-bindings context-service="java:jboss/ee/concurrency/context/default" datasource="java:jboss/datasources/KeycloakDS"&gt;
  </code></pre>
  
  <p>The error i am getting.
  <em>error</em></p>
  
  <pre><code>06:13:39,430 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 32) WFLYCTL0013: Operation ("add") failed - address: ([
      ("subsystem" =&gt; "datasources"),
      ("jdbc-driver" =&gt; "postgresql")
  ]) - failure description: "WFLYJCA0115: Module for driver [org.postgresql] or one of it dependencies is missing: [org.postgresql]"
  </code></pre>
  
  <p>How can i resolve this?</p>