[keycloak-user] Keycloak 5.0.0 and Java 11?

Vlasta Ramik vramik at redhat.com
Wed Mar 27 09:14:26 EDT 2019


Hey Ryan,

I believe it's a bug and should be fixed in futere releases, would you 
mind to create a ticket to https://issues.jboss.org/browse/KEYCLOAK ?

Thanks,

V.

On 3/26/19 5:26 PM, Ryan Slominski wrote:
> I'm attempting to use Keycloak 5.0.0 and OpenJDK 11.0.2 on RHEL 7.6, but encountering an error executing the bin/add-user-keycloak.sh script:
>
> [root at keycloaktest bin]# ./add-user-keycloak.sh -u admin
> org.jboss.modules.ModuleNotFoundException: java.se
>          at org.jboss.modules.Module.addPaths(Module.java:1266)
>          at org.jboss.modules.Module.link(Module.java:1622)
>          at org.jboss.modules.Module.relinkIfNecessary(Module.java:1650)
>          at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:296)
>          at org.jboss.modules.Main.main(Main.java:437)
> [root at keycloaktest bin]# export JAVA_OPTS="--add-modules java.se"
> [root at keycloaktest bin]# echo $JAVA_OPTS
> --add-modules java.se
> [root at keycloaktest bin]# ./add-user-keycloak.sh -u admin
> Press ctrl-d (Unix) or ctrl-z (Windows) to exit
> Password:
> Added 'admin' to '/opt/wildfly/keycloak-5.0.0/standalone/configuration/keycloak-add-user.json', restart server to load user
> [root at keycloaktest bin]#
>
> I found the workaround here:
>
> https://issues.jboss.org/browse/WFCORE-3962
>
> and here:
>
> https://issues.jboss.org/browse/MODULES-372
>
> Is this simply an oversight with the add-user-keycloak.sh script and will be fixed in a future release?
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list