0

While Migrating from Wildfly 23 to wildfly 26 version failed to bring up the server due issue facing related to keycloak. Facing issue with Keycloak 16.1.1 and WildFly Full 26.1.3.Final. But same thing is working fine with Keycloak 16.1.1 and WildFly Full 23.0.2.Final. As soon as upgrdaing to wildfly 26 facing this issue.

2023-01-31 15:39:06,232 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 103) MSC000001: Failed to start service jboss.deployment.subunit."sample-JBoss-230.0.0.0-SNAPSHOT.ear"."ConfigurationManager-230.0.0.0-SNAPSHOT.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.subunit."sample-JBoss-230.0.0.0-SNAPSHOT.ear"."ConfigurationManager-230.0.0.0-SNAPSHOT.war".undertow-deployment: java.lang.RuntimeException: java.lang.IllegalStateException: The required mechanism 'KEYCLOAK' is not available in mechanisms [BASIC, CLIENT_CERT, DIGEST, FORM] from the HttpAuthenticationFactory.
        at org.wildfly.extension.undertow@26.1.3.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:90)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
        at java.base/java.lang.Thread.run(Thread.java:834)
        at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: The required mechanism 'KEYCLOAK' is not available in mechanisms [BASIC, CLIENT_CERT, DIGEST, FORM] from the HttpAuthenticationFactory.

But it was working fine with wildfly 23 version. everything was working fine but as soon as upgraded to wildfly26 facing above issue. Only difference Could observe from wildfly 23 to wildfly 26 is removal of security-realm and addition of elytron subsystem.

Please find the attachment for the standalone.xml Using for wildfly 26.

Changed the standalone.xml as per wildlfy 26 configuration by removing the security-realm and by adding elytron subsytem and tried to bring up the server . but facing issue related to keycloak.

Any help to resolve this issue would be much appreciated.

prath
  • 21
  • 2

0 Answers0