Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WFLYCTL0083: failed to load module org,keycloak.keycloak-server-subsytem

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 ?

like image 874
Haseb Ansari Avatar asked Dec 24 '22 21:12

Haseb Ansari


2 Answers

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

like image 123
Arun Chandrasekaran Avatar answered Mar 15 '23 23:03

Arun Chandrasekaran


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.

like image 35
Pedro Alvares Avatar answered Mar 15 '23 23:03

Pedro Alvares