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@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 

We also see that other person got the same error, 


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.DefaultJpaConnectionProviderFactory.lazyInit(DefaultJpaConnectionProviderFactory.java:132)

at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.create(DefaultJpaConnectionProviderFactory.java:62)

at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.create(DefaultJpaConnectionProviderFactory.java:50)


Could you help us 

Thanks 


_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user