[keycloak-user] Property 'databaseSchema' needs to be specified in the configuration

Stian Thorgersen sthorger at redhat.com
Wed Sep 14 07:23:31 EDT 2016


I think this is already fixed in 2.2.0.CR1. Can you try that instead?

On 14 September 2016 at 10:58, Francisco Montada <fmontadamt at gmail.com>
wrote:

> Hi Dean
> we are running Keycloak 2.1.0-Final version using mongo DB but it is not
> working, we are getting the error below
>
> ERROR [org.keycloak.broker.oidc.AbstractOAuth2IdentityProvider] (default
> task-3) Failed to make identity provider oauth callback:
> java.lang.RuntimeException: Property 'databaseSchema' needs to be specified
> in the configuration
>
> we have the correct configuration listed on the documentation, but it is
> not working
> https://keycloak.gitbooks.io/server-installation-and-configu
> ration/content/v/2.1/topics/mongo.html
>
> We also see that other person got the same error,
> http://lists.jboss.org/pipermail/keycloak-user/2016-May/006007.html
>
>
> This is our keycloak-server.json configuration
>
> {
>
>     "providers": [
>
>         "classpath:${jboss.home.dir}/providers/*"
>
>     ],
>
>
>     "admin": {
>
>         "realm": "master"
>
>     },
>
>
>     "eventsStore": {
>
>         "provider": "mongo",
>
>         "mongo": {
>
>             "exclude-events": [ "REFRESH_TOKEN" ]
>
>         }
>
>     },
>
>
>     "realm": {
>
>         "provider": "mongo"
>
>     },
>
>
>     "user": {
>
>         "provider": "mongo"
>
>     },
>
>
>     "userCache": {
>
>         "default" : {
>
>             "enabled": true
>
>         }
>
>     },
>
>
>     "userSessionPersister": {
>
>         "provider": "mongo"
>
>     },
>
>
>     "authorizationPersister": {
>
>         "provider": "mongo"
>
>     },
>
>
>     "timer": {
>
>         "provider": "basic"
>
>     },
>
>
>     "theme": {
>
>         "staticMaxAge": 2592000,
>
>         "cacheTemplates": true,
>
>         "cacheThemes": true,
>
>         "folder": {
>
>           "dir": "${jboss.home.dir}/themes"
>
>         }
>
>     },
>
>
>     "scheduled": {
>
>         "interval": 900
>
>     },
>
>
>     "connectionsHttpClient": {
>
>         "default": {}
>
>     },
>
>
>     "connectionsMongo": {
>
>         "default": {
>
>             "host": "10.0.22.56",
>
>             "port": "27017",
>
>             "db": "ondbook",
>
>             "user": "appUser",
>
>             "password" : "password",
>
>             "connectionsPerHost": 100,
>
>             "databaseSchema": "update",
>
>             "schema": "2.1.0.Final"
>
>          }
>
>     },
>
>
>     "realmCache": {
>
>         "default" : {
>
>             "enabled": true
>
>         }
>
>     },
>
>
>     "connectionsInfinispan": {
>
>         "provider": "default",
>
>         "default": {
>
>             "cacheContainer" : "java:comp/env/infinispan/Keycloak"
>
>         }
>
>     }
>
> }
>
>
> Other problem is that we do not know why the logs is showing JPA
> connection when we config Mongo
>
>
> Caused by: java.lang.RuntimeException: Property 'databaseSchema' needs to
> be specified in the configuration
>
> at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFac
> tory.lazyInit(DefaultJpaConnectionProviderFactory.java:132)
>
> at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFac
> tory.create(DefaultJpaConnectionProviderFactory.java:62)
>
> at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFac
> tory.create(DefaultJpaConnectionProviderFactory.java:50)
>
>
> Could you help us
>
> Thanks
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160914/e62b249c/attachment.html 


More information about the keycloak-user mailing list