<div dir="ltr">Hi Dean <div>we are running Keycloak 2.1.0-Final version using mongo DB but it is not working, we are getting the error below </div><div><br></div><div>ERROR [org.keycloak.broker.oidc.<wbr>AbstractOAuth2IdentityProvider<wbr>] (default task-3) Failed to make identity provider oauth callback: java.lang.RuntimeException: Property &#39;databaseSchema&#39; needs to be specified in the configuration<br></div><div><br></div><div>we have the correct configuration listed on the documentation, but it is not working </div><div><a href="https://keycloak.gitbooks.io/server-installation-and-configuration/content/v/2.1/topics/mongo.html" target="_blank">https://keycloak.gitbooks.io/<wbr>server-installation-and-<wbr>configuration/content/v/2.1/<wbr>topics/mongo.html</a><br></div><div><br></div><div>We also see that other person got the same error, </div><div><a href="http://lists.jboss.org/pipermail/keycloak-user/2016-May/006007.html" target="_blank">http://lists.jboss.org/<wbr>pipermail/keycloak-user/2016-<wbr>May/006007.html</a></div><div><br></div><div><br></div><div>This is our keycloak-server.json configuration </div><div><p style="font-size:12.8px">{</p><p style="font-size:12.8px">    &quot;providers&quot;: [</p><p style="font-size:12.8px">        &quot;classpath:${jboss.home.dir}/<wbr>providers/*&quot;</p><p style="font-size:12.8px">    ],</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;admin&quot;: {</p><p style="font-size:12.8px">        &quot;realm&quot;: &quot;master&quot;</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;eventsStore&quot;: {</p><p style="font-size:12.8px">        &quot;provider&quot;: &quot;mongo&quot;,</p><p style="font-size:12.8px">        &quot;mongo&quot;: {</p><p style="font-size:12.8px">            &quot;exclude-events&quot;: [ &quot;REFRESH_TOKEN&quot; ]</p><p style="font-size:12.8px">        }</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;realm&quot;: {</p><p style="font-size:12.8px">        &quot;provider&quot;: &quot;mongo&quot;</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;user&quot;: {</p><p style="font-size:12.8px">        &quot;provider&quot;: &quot;mongo&quot;</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;userCache&quot;: {</p><p style="font-size:12.8px">        &quot;default&quot; : {</p><p style="font-size:12.8px">            &quot;enabled&quot;: true</p><p style="font-size:12.8px">        }</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;userSessionPersister&quot;: {</p><p style="font-size:12.8px">        &quot;provider&quot;: &quot;mongo&quot;</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;authorizationPersister&quot;: {</p><p style="font-size:12.8px">        &quot;provider&quot;: &quot;mongo&quot;</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;timer&quot;: {</p><p style="font-size:12.8px">        &quot;provider&quot;: &quot;basic&quot;</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;theme&quot;: {</p><p style="font-size:12.8px">        &quot;staticMaxAge&quot;: 2592000,</p><p style="font-size:12.8px">        &quot;cacheTemplates&quot;: true,</p><p style="font-size:12.8px">        &quot;cacheThemes&quot;: true,</p><p style="font-size:12.8px">        &quot;folder&quot;: {</p><p style="font-size:12.8px">          &quot;dir&quot;: &quot;${jboss.home.dir}/themes&quot;</p><p style="font-size:12.8px">        }</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;scheduled&quot;: {</p><p style="font-size:12.8px">        &quot;interval&quot;: 900</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;connectionsHttpClient&quot;: {</p><p style="font-size:12.8px">        &quot;default&quot;: {}</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;connectionsMongo&quot;: {</p><p style="font-size:12.8px">        &quot;default&quot;: {</p><p style="font-size:12.8px">            &quot;host&quot;: &quot;10.0.22.56&quot;,</p><p style="font-size:12.8px">            &quot;port&quot;: &quot;27017&quot;,</p><p style="font-size:12.8px">            &quot;db&quot;: &quot;ondbook&quot;,</p><p style="font-size:12.8px">            &quot;user&quot;: &quot;appUser&quot;,</p><p style="font-size:12.8px">            &quot;password&quot; : &quot;password&quot;,</p><p style="font-size:12.8px">            &quot;connectionsPerHost&quot;: 100,</p><p style="font-size:12.8px">            &quot;databaseSchema&quot;: &quot;update&quot;,</p><p style="font-size:12.8px">            &quot;schema&quot;: &quot;2.1.0.Final&quot;</p><p style="font-size:12.8px">         }</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;realmCache&quot;: {</p><p style="font-size:12.8px">        &quot;default&quot; : {</p><p style="font-size:12.8px">            &quot;enabled&quot;: true</p><p style="font-size:12.8px">        }</p><p style="font-size:12.8px">    },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">    &quot;connectionsInfinispan&quot;: {</p><p style="font-size:12.8px">        &quot;provider&quot;: &quot;default&quot;,</p><p style="font-size:12.8px">        &quot;default&quot;: {</p><p style="font-size:12.8px">            &quot;cacheContainer&quot; : &quot;java:comp/env/infinispan/<wbr>Keycloak&quot;</p><p style="font-size:12.8px">        }</p><p style="font-size:12.8px">    }</p><p style="font-size:12.8px">}</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">Other problem is that we do not know why the logs is showing JPA connection when we config Mongo </p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">Caused by: java.lang.RuntimeException: Property &#39;databaseSchema&#39; needs to be specified in the configuration</p><p style="font-size:12.8px">at org.keycloak.connections.jpa.<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.lazyInit(<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.java:132)</p><p style="font-size:12.8px">at org.keycloak.connections.jpa.<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.create(<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.java:62)</p><p style="font-size:12.8px"></p><p style="font-size:12.8px">at org.keycloak.connections.jpa.<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.create(<wbr>DefaultJpaConnectionProviderFa<wbr>ctory.java:50)</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">Could you help us </p><p style="font-size:12.8px">Thanks </p><div class="gmail-yj6qo gmail-ajU" style="margin:2px 0px 0px;font-size:12.8px"></div></div></div>