<div dir="ltr"><div>Due this error with version 1.3.1, I also tried to use Keycloak version 1.2.0 and put it to work on JBoss EAP 6.4.<br><br>But I also did not succeed following this procedure:<br><br></div>$ rm -rf jboss-eap-6.4<br><div>$ unzip -q jboss-eap-6.4.0.zip<br>$ unzip -q -d jboss-eap-6.4 keycloak-overlay-1.2.0.Final.zip<br>$ cd jboss-eap-6.4/standalone/configuration/<br>$ cp standalone.xml standalone.xml.original<br>$ cat &lt;&lt; &#39;EOF&#39; | patch standalone.xml<br>&gt; --- standalone.xml.original 2015-06-24 09:41:43.018484800 -0300<br>&gt; +++ standalone.xml  2015-06-24 09:45:49.245308500 -0300<br>&gt; @@ -24,6 +24,7 @@<br>&gt;          &lt;extension module=&quot;org.jboss.as.web&quot;/&gt;<br>&gt;          &lt;extension module=&quot;org.jboss.as.webservices&quot;/&gt;<br>&gt;          &lt;extension module=&quot;org.jboss.as.weld&quot;/&gt;<br>&gt; +        &lt;extension module=&quot;org.keycloak.keycloak-subsystem&quot;/&gt;<br>&gt;      &lt;/extensions&gt;<br>&gt;      &lt;management&gt;<br>&gt;          &lt;security-realms&gt;<br>&gt; @@ -135,6 +136,14 @@<br>&gt;                          &lt;password&gt;sa&lt;/password&gt;<br>&gt;                      &lt;/security&gt;<br>&gt;                  &lt;/datasource&gt;<br>&gt; +                &lt;datasource jndi-name=&quot;java:jboss/datasources/KeycloakDS&quot; pool-name=&quot;KeycloakDS&quot; enabled=&quot;true&quot; use-java-context=&quot;true&quot;&gt;<br>&gt; +                    &lt;connection-url&gt;jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE&lt;/connection-url&gt;<br>&gt; +                    &lt;driver&gt;h2&lt;/driver&gt;<br>&gt; +                    &lt;security&gt;<br>&gt; +                        &lt;user-name&gt;sa&lt;/user-name&gt;<br>&gt; +                        &lt;password&gt;sa&lt;/password&gt;<br>&gt; +                    &lt;/security&gt;<br>&gt; +                &lt;/datasource&gt;<br>&gt;                  &lt;drivers&gt;<br>&gt;                      &lt;driver name=&quot;h2&quot; module=&quot;com.h2database.h2&quot;&gt;<br>&gt;                          &lt;xa-datasource-class&gt;org.h2.jdbcx.JdbcDataSource&lt;/xa-datasource-class&gt;<br>&gt; @@ -276,6 +285,16 @@<br>&gt;                          &lt;policy-module code=&quot;Delegating&quot; flag=&quot;required&quot;/&gt;<br>&gt;                      &lt;/authorization&gt;<br>&gt;                  &lt;/security-domain&gt;<br>&gt; +                &lt;security-domain name=&quot;keycloak&quot;&gt;<br>&gt; +                    &lt;authentication&gt;<br>&gt; +                        &lt;login-module code=&quot;org.keycloak.adapters.jboss.KeycloakLoginModule&quot; flag=&quot;required&quot;/&gt;<br>&gt; +                    &lt;/authentication&gt;<br>&gt; +                &lt;/security-domain&gt;<br>&gt; +                &lt;security-domain name=&quot;sp&quot; cache-type=&quot;default&quot;&gt;<br>&gt; +                    &lt;authentication&gt;<br>&gt; +                        &lt;login-module code=&quot;org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule&quot; flag=&quot;required&quot;/&gt;<br>&gt; +                    &lt;/authentication&gt;<br>&gt; +                &lt;/security-domain&gt;<br>&gt;              &lt;/security-domains&gt;<br>&gt;          &lt;/subsystem&gt;<br>&gt;          &lt;subsystem xmlns=&quot;urn:jboss:domain:threads:1.1&quot;/&gt;<br>&gt; @@ -307,6 +326,12 @@<br>&gt;              &lt;client-config name=&quot;Standard-Client-Config&quot;/&gt;<br>&gt;          &lt;/subsystem&gt;<br>&gt;          &lt;subsystem xmlns=&quot;urn:jboss:domain:weld:1.0&quot;/&gt;<br>&gt; +        &lt;subsystem xmlns=&quot;urn:jboss:domain:keycloak:1.0&quot;&gt;<br>&gt; +            &lt;auth-server name=&quot;main-auth-server&quot;&gt;<br>&gt; +                &lt;enabled&gt;true&lt;/enabled&gt;<br>&gt; +                &lt;web-context&gt;auth&lt;/web-context&gt;<br>&gt; +            &lt;/auth-server&gt;<br>&gt; +        &lt;/subsystem&gt;<br>&gt;      &lt;/profile&gt;<br>&gt;      &lt;interfaces&gt;<br>&gt;          &lt;interface name=&quot;management&quot;&gt;<br>&gt; @@ -338,4 +363,4 @@<br>&gt;              &lt;remote-destination host=&quot;localhost&quot; port=&quot;25&quot;/&gt;<br>&gt;          &lt;/outbound-socket-binding&gt;<br>&gt;      &lt;/socket-binding-group&gt;<br>&gt; -&lt;/server&gt;<br>&gt; \ No newline at end of file<br>&gt; +&lt;/server&gt;<br>&gt; EOF<br>patching file standalone.xml<br></div><div>$ cd ../../..<br><br>$ JBOSS_HOME=$PWD/jboss-eap-6.4 jboss-eap-6.4/bin/standalone.sh<br>=========================================================================<br><br>  JBoss Bootstrap Environment<br><br>  JBOSS_HOME: C:\desenv\projetos\stn\sigti\instalador-bpms\jboss-eap-6.4<br><br>  JAVA: /cygdrive/c/Program Files/Java/jdk1.7.0_75/bin/java<br><br>  JAVA_OPTS:  -server -XX:+UseCompressedOops -verbose:gc -Xloggc:&quot;C:\desenv\projetos\stn\sigti\instalador-bpms\jboss-eap-6.4\standalone\log/gc.log&quot; -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Duser.language=en -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.modules.policy-permissions=true<br><br>=========================================================================<br><br>12:45:03,381 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.6.Final-redhat-1<br>12:45:03,527 INFO  [org.jboss.msc] (main) JBoss MSC version 1.1.5.Final-redhat-1<br>12:45:03,585 INFO  [<a href="http://org.jboss.as">org.jboss.as</a>] (MSC service thread 1-6) JBAS015899: JBoss EAP <a href="http://6.4.0.GA">6.4.0.GA</a> (AS 7.5.0.Final-redhat-21) starting<br>12:45:03,975 ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration<br>        at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        at org.jboss.as.server.ServerService.boot(ServerService.java:330) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:263) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]<br>Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module org.keycloak.keycloak-subsystem<br>        at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:154) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:435) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:145) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:107) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final-redhat-3.jar:1.1.0.Final-redhat-3]<br>        at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final-redhat-3.jar:1.1.0.Final-redhat-3]<br>        at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        ... 3 more<br>Caused by: java.util.concurrent.ExecutionException: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module<br>        at java.util.concurrent.FutureTask.report(FutureTask.java:122) [rt.jar:1.7.0_75]<br>        at java.util.concurrent.FutureTask.get(FutureTask.java:188) [rt.jar:1.7.0_75]<br>        at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:146) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        ... 9 more<br>Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module<br>        at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:195) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        at org.jboss.as.controller.parsing.ExtensionXml.access$000(ExtensionXml.java:68) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:126) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        at org.jboss.as.controller.parsing.ExtensionXml$1.call(ExtensionXml.java:123) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_75]<br>        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_75]<br>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_75]<br>        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]<br>        at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.2.Final-redhat-1.jar:2.1.2.Final-redhat-1]<br>Caused by: org.jboss.modules.ModuleNotFoundException: org.keycloak.keycloak-subsystem:main<br>        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:240) [jboss-modules.jar:1.3.6.Final-redhat-1]<br>        at org.jboss.as.controller.parsing.ExtensionXml.loadModule(ExtensionXml.java:177) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]<br>        ... 8 more<br><br>12:45:03,983 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.<br>12:45:03,994 INFO  [<a href="http://org.jboss.as">org.jboss.as</a>] (MSC service thread 1-5) JBAS015950: JBoss EAP <a href="http://6.4.0.GA">6.4.0.GA</a> (AS 7.5.0.Final-redhat-21) stopped in 2ms<br><br><br><br></div><div>What I&#39;m doing wrong?<br></div><div>I had a good experience using Keycloak with Widlfy but I still can&#39;t put it to work with JBoss EAP 6.4.<br><br></div><div>Please, help me.<br><br></div></div>