When I am starting my Wildfly server I am getting this error which ultimately shuts my server from running. What am I missing while installing the server ?
Adding little more information to what Haseb Ansari has provided already. Basically, here are the steps that needs to be performed to get keycloak setup in wildfly.
Assumption: Wildfly is extracted to ${user.home}/apps/wildfly, lets call it ${jboss.home} here.
Following are the steps that needs to be done.
1. Download OpenID connect adapter from keycloak
2. Extract keycloak-wildfly-adapter-dist-3.3.0.CR2.zip
$> cd ~/Downloads
$>unzip ./keycloak-wildfly-adapter-dist-3.3.0.CR2.zip -d keycloak-wildfly-adapter
3. copy files to ${jboss.home}
cd keycloak-wildfly-adapter/bin
cp ./adapter-* ${jboss.home}
cp -rf ./modules ${jboss.home}
4. Execute jboss cli
cd ${jboss.home}
$>./bin/jboss-cli.sh --file=adapter-elytron-install-offline.cli
You get a message as below [copied from terminal]
$> wildfly]$./bin/jboss-cli.sh --file=adapter-elytron-install-offline.cli
{
"outcome" => "success",
"result" => [("keycloak" => "1.1.0")]
}
{"outcome" => "success"}
{"outcome" => "success"}
{"outcome" => "success"}
{"outcome" => "success"}
{"outcome" => "success"}
{"outcome" => "success"}
{"outcome" => "success"}
{"outcome" => "success"}
You may use ../bin/jboss-cli.sh --file=adapter-install-offline.cli if your wildfly version is 10.
5. Run jboss
./bin/standalone.sh
The same error occurred with me.
The solution was copying the keycloak module to the folder below:
{your_jboss_folder}/modules/system/add-ons/keycloak/
I had it running on another server, so it was simply copy and paste. If you don't have it, try searching these modules on keycloak website.
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With