[keycloak-user] Exception loading Keycloak modules in Wildfly 9.0

Vijay Bhadriraju vbhadrir at us.ibm.com
Thu Oct 22 12:02:42 EDT 2015


I am getting the following exception after unzipping the 
keycloak-wildfly-adapter-dist-1.1.0.Final.zip into the WildFly 9.0 server 
and configuring the standalone.xml file with the following lines as 
described in the keycloak documentation. I have tried this with Wildfly 
10.0 version also and get the same error.

<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.keycloak.keycloak-adapter-subsystem"/>
...
</extensions>
<profile>
<subsystem xmlns="urn:jboss:domain:keycloak:1.1"/>
...
</profile>

How do I resolve this keycloak module loading exception?


11:35:36,018 ERROR [org.jboss.as.server] (Controller Boot Thread) 
WFLYSRV0055: Caught exce
ption during boot: 
org.jboss.as.controller.persistence.ConfigurationPersistenceException:
WFLYCTL0085: Failed to parse configuration
        at 
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigura
tionPersister.java:131) [wildfly-controller-2.0.0.CR7.jar:2.0.0.CR7]
        at org.jboss.as.server.ServerService.boot(ServerService.java:356) 
[wildfly-server-
2.0.0.CR7.jar:2.0.0.CR7]
        at 
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerServi
ce.java:299) [wildfly-controller-2.0.0.CR7.jar:2.0.0.CR7]
        at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_65]
Caused by: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to 
load module org.key
cloak.keycloak-adapter-subsystem
        at 
org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:
155) [wildfly-controller-2.0.0.CR7.jar:2.0.0.CR7]
        at 
org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.j
ava:220) [wildfly-server-2.0.0.CR7.jar:2.0.0.CR7]
        at 
org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:14
3) [wildfly-server-2.0.0.CR7.jar:2.0.0.CR7]
        at 
org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:69) 
[w
ildfly-server-2.0.0.CR7.jar:2.0.0.CR7]
        at 
org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:47) 
[w
ildfly-server-2.0.0.CR7.jar:2.0.0.CR7]
        at 
org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) 
[staxm
apper-1.2.0.Final.jar:1.2.0.Final]
        at 
org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) 
[staxma
pper-1.2.0.Final.jar:1.2.0.Final]
        at 
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigura
tionPersister.java:123) [wildfly-controller-2.0.0.CR7.jar:2.0.0.CR7]
        ... 3 more
Caused by: java.util.concurrent.ExecutionException: 
javax.xml.stream.XMLStreamException: W
FLYCTL0083: Failed to load module
        at java.util.concurrent.FutureTask.report(Unknown Source) 
[rt.jar:1.8.0_65]
        at java.util.concurrent.FutureTask.get(Unknown Source) 
[rt.jar:1.8.0_65]
        at 
org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:
147) [wildfly-controller-2.0.0.CR7.jar:2.0.0.CR7]
        ... 10 more
Caused by: javax.xml.stream.XMLStreamException: WFLYCTL0083: Failed to 
load module
        at 
org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:196)
[wildfly-controller-2.0.0.CR7.jar:2.0.0.CR7]
        at 
org.jboss.as.controller.parsing.ExtensionXml.access$000(ExtensionXml.java:69) 
[
wildfly-controller-2.0.0.CR7.jar:2.0.0.CR7]
        at 
org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:127) 
[wil
dfly-controller-2.0.0.CR7.jar:2.0.0.CR7]
        at 
org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:124) 
[wil
dfly-controller-2.0.0.CR7.jar:2.0.0.CR7]
        at java.util.concurrent.FutureTask.run(Unknown Source) 
[rt.jar:1.8.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown 
Source) [rt.jar:1.8.0
_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
Source) [rt.jar:1.8.
0_65]
        at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_65]
        at org.jboss.threads.JBossThread.run(JBossThread.java:320) 
[jboss-threads-2.2.1.Fi
nal.jar:2.2.1.Final]
Caused by: org.jboss.modules.ModuleNotFoundException: 
org.keycloak.keycloak-adapter-subsys
tem:main
        at 
org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:236) 
[jboss-modules
.jar:1.4.4.Final]
        at 
org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:178)
[wildfly-controller-2.0.0.CR7.jar:2.0.0.CR7]
        ... 8 more

Regards, Vijay


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151022/fde94b67/attachment-0001.html 


More information about the keycloak-user mailing list