<div dir="ltr">I think this is already fixed in 2.2.0.CR1. Can you try that instead?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 September 2016 at 10:58, Francisco Montada <span dir="ltr"><<a href="mailto:fmontadamt@gmail.com" target="_blank">fmontadamt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Dean <div><div class="h5"><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.Abst<wbr>ractOAuth2IdentityProvider] (default task-3) Failed to make identity provider oauth callback: java.lang.RuntimeException: Property 'databaseSchema' 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/s<wbr>erver-installation-and-configu<wbr>ration/content/v/2.1/topics/<wbr>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/piperma<wbr>il/keycloak-user/2016-May/<wbr>006007.html</a></div><div><br></div><div><br></div><div>This is our keycloak-server.json configuration </div></div></div><div><div><div class="h5"><p style="font-size:12.8px">{</p><p style="font-size:12.8px"> "providers": [</p><p style="font-size:12.8px"> "classpath:${jboss.home.dir}/p<wbr>roviders/*"</p><p style="font-size:12.8px"> ],</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "admin": {</p><p style="font-size:12.8px"> "realm": "master"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "eventsStore": {</p><p style="font-size:12.8px"> "provider": "mongo",</p><p style="font-size:12.8px"> "mongo": {</p><p style="font-size:12.8px"> "exclude-events": [ "REFRESH_TOKEN" ]</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"> "realm": {</p><p style="font-size:12.8px"> "provider": "mongo"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "user": {</p><p style="font-size:12.8px"> "provider": "mongo"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "userCache": {</p><p style="font-size:12.8px"> "default" : {</p><p style="font-size:12.8px"> "enabled": 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"> "userSessionPersister": {</p><p style="font-size:12.8px"> "provider": "mongo"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "authorizationPersister": {</p><p style="font-size:12.8px"> "provider": "mongo"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "timer": {</p><p style="font-size:12.8px"> "provider": "basic"</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "theme": {</p><p style="font-size:12.8px"> "staticMaxAge": 2592000,</p><p style="font-size:12.8px"> "cacheTemplates": true,</p><p style="font-size:12.8px"> "cacheThemes": true,</p><p style="font-size:12.8px"> "folder": {</p><p style="font-size:12.8px"> "dir": "${jboss.home.dir}/themes"</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"> "scheduled": {</p><p style="font-size:12.8px"> "interval": 900</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "connectionsHttpClient": {</p><p style="font-size:12.8px"> "default": {}</p><p style="font-size:12.8px"> },</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px"> "connectionsMongo": {</p><p style="font-size:12.8px"> "default": {</p><p style="font-size:12.8px"> "host": "10.0.22.56",</p><p style="font-size:12.8px"> "port": "27017",</p><p style="font-size:12.8px"> "db": "ondbook",</p><p style="font-size:12.8px"> "user": "appUser",</p><p style="font-size:12.8px"> "password" : "password",</p><p style="font-size:12.8px"> "connectionsPerHost": 100,</p><p style="font-size:12.8px"> "databaseSchema": "update",</p><p style="font-size:12.8px"> "schema": "2.1.0.Final"</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"> "realmCache": {</p><p style="font-size:12.8px"> "default" : {</p><p style="font-size:12.8px"> "enabled": 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"> "connectionsInfinispan": {</p><p style="font-size:12.8px"> "provider": "default",</p><p style="font-size:12.8px"> "default": {</p><p style="font-size:12.8px"> "cacheContainer" : "java:comp/env/infinispan/Keyc<wbr>loak"</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 'databaseSchema' needs to be specified in the configuration</p><p style="font-size:12.8px">at org.keycloak.connections.jpa.D<wbr>efaultJpaConnectionProviderFac<wbr>tory.lazyInit(DefaultJpaConnec<wbr>tionProviderFactory.java:132)</p><p style="font-size:12.8px">at org.keycloak.connections.jpa.D<wbr>efaultJpaConnectionProviderFac<wbr>tory.create(DefaultJpaConnecti<wbr>onProviderFactory.java:62)</p><p style="font-size:12.8px"></p><p style="font-size:12.8px">at org.keycloak.connections.jpa.D<wbr>efaultJpaConnectionProviderFac<wbr>tory.create(DefaultJpaConnecti<wbr>onProviderFactory.java:50)</p><p style="font-size:12.8px"><br></p></div></div><p style="font-size:12.8px">Could you help us </p><p style="font-size:12.8px">Thanks </p><div style="margin:2px 0px 0px;font-size:12.8px"></div></div></div>
<br>______________________________<wbr>_________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>