Red Hat SSO 7 with MongoDB
Issue
- When trying to use MongoDB with Red Hat SSO 7, an exception is thrown during startup.
Caused by: java.lang.RuntimeException: Failed to find provider mongo for realm
at org.keycloak.services.DefaultKeycloakSessionFactory.loadSPIs(DefaultKeycloakSessionFactory.java:95)
at org.keycloak.services.DefaultKeycloakSessionFactory.init(DefaultKeycloakSessionFactory.java:74)
at org.keycloak.services.resources.KeycloakApplication.createSessionFactory(KeycloakApplication.java:225)
at org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:77)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:150)
... 19 more
- Is MongoDB supported with Red Hat SSO 7?
Environment
- Red Hat Single Sign On (SSO) 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
