<div dir="ltr"><div><div>Now I tried to downgrade to keycloak version 1.1.0.Final, executing the steps bellow. But, I still can´t start JBoss EAP 6.4 after my steps:</div><div><br></div><div><a href="https://gist.github.com/paulojeronimo/3f5746b221a882cf6b24">https://gist.github.com/paulojeronimo/3f5746b221a882cf6b24</a><br></div><div><br></div><div>Any idea about what I´m doing wrong?</div><div><br></div><div>I really need integrate Keycloak with JBoss EAP 6.4. This integration really works? (I´ve been using Keycloak only with Wildfly until now, but, as its documentation said, it works. How???)</div><div><br></div></div><div><br></div><div class="gmail_extra"><div class="gmail_quote">2015-06-24 14:25 GMT-03:00 Paulo Jerônimo <span dir="ltr"><<a href="mailto:paulojeronimo@gmail.com" target="_blank">paulojeronimo@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Vineet,</div><div><br></div>I did what you said (using my last configuration with keycloak 1.2.0):<div><br></div><div><div>$ grep 'subsystem.*keycloak' jboss-eap-6.4/standalone/configuration/standalone.xml</div><span><div> <subsystem xmlns="urn:jboss:domain:keycloak:1.1"></div></span></div><div><br></div><div>The error persists.</div><div><br></div><div>Some other idea?</div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">2015-06-24 13:05 GMT-03:00 Vineet Chaudhary <span dir="ltr"><<a href="mailto:vineet.chaudhary@praxify.com" target="_blank">vineet.chaudhary@praxify.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I might be sound crazy now but for last time can you just change standalone.xml<div><br></div><div><span style="font-size:12.8000001907349px"><subsystem xmlns="urn:jboss:domain:</span><span style="font-size:12.8000001907349px">keycloak:1.0"> to</span><br></div><div><span style="font-size:12.8000001907349px"><subsystem xmlns="urn:jboss:domain:</span><span style="font-size:12.8000001907349px">keycloak:1.1"></span><span style="font-size:12.8000001907349px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Wed, Jun 24, 2015 at 9:19 PM, Paulo Jerônimo <span dir="ltr"><<a href="mailto:paulojeronimo@gmail.com" target="_blank">paulojeronimo@gmail.com</a>></span> wrote:<br></span><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><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 << 'EOF' | patch standalone.xml<br>> --- standalone.xml.original 2015-06-24 09:41:43.018484800 -0300<br>> +++ standalone.xml 2015-06-24 09:45:49.245308500 -0300<br>> @@ -24,6 +24,7 @@<br>> <extension module="org.jboss.as.web"/><br>> <extension module="org.jboss.as.webservices"/><br>> <extension module="org.jboss.as.weld"/><br>> + <extension module="org.keycloak.keycloak-subsystem"/><br>> </extensions><br>> <management><br>> <security-realms><br>> @@ -135,6 +136,14 @@<br>> <password>sa</password><br>> </security><br>> </datasource><br>> + <datasource jndi-name="java:jboss/datasources/KeycloakDS" pool-name="KeycloakDS" enabled="true" use-java-context="true"><br>> + <connection-url>jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE</connection-url><br>> + <driver>h2</driver><br>> + <security><br>> + <user-name>sa</user-name><br>> + <password>sa</password><br>> + </security><br>> + </datasource><br>> <drivers><br>> <driver name="h2" module="com.h2database.h2"><br>> <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class><br>> @@ -276,6 +285,16 @@<br>> <policy-module code="Delegating" flag="required"/><br>> </authorization><br>> </security-domain><br>> + <security-domain name="keycloak"><br>> + <authentication><br>> + <login-module code="org.keycloak.adapters.jboss.KeycloakLoginModule" flag="required"/><br>> + </authentication><br>> + </security-domain><br>> + <security-domain name="sp" cache-type="default"><br>> + <authentication><br>> + <login-module code="org.picketlink.identity.federation.bindings.wildfly.SAML2LoginModule" flag="required"/><br>> + </authentication><br>> + </security-domain><br>> </security-domains><br>> </subsystem><br>> <subsystem xmlns="urn:jboss:domain:threads:1.1"/><br>> @@ -307,6 +326,12 @@<br>> <client-config name="Standard-Client-Config"/><br>> </subsystem><br>> <subsystem xmlns="urn:jboss:domain:weld:1.0"/><br>> + <subsystem xmlns="urn:jboss:domain:keycloak:1.0"><br>> + <auth-server name="main-auth-server"><br>> + <enabled>true</enabled><br>> + <web-context>auth</web-context><br>> + </auth-server><br>> + </subsystem><br>> </profile><br>> <interfaces><br>> <interface name="management"><br>> @@ -338,4 +363,4 @@<br>> <remote-destination host="localhost" port="25"/><br>> </outbound-socket-binding><br>> </socket-binding-group><br>> -</server><br>> \ No newline at end of file<br>> +</server><br>> 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<span><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></span> JAVA_OPTS: -server -XX:+UseCompressedOops -verbose:gc -Xloggc:"C:\desenv\projetos\stn\sigti\instalador-bpms\jboss-eap-6.4\standalone\log/gc.log" -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" target="_blank">org.jboss.as</a>] (MSC service thread 1-6) JBAS015899: JBoss EAP <a href="http://6.4.0.GA" target="_blank">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<span><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></span>Caused by: javax.xml.stream.XMLStreamException: JBAS014674: Failed to load module org.keycloak.keycloak-subsystem<span><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></span>Caused by: org.jboss.modules.ModuleNotFoundException: org.keycloak.keycloak-subsystem:main<span><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></span>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" target="_blank">org.jboss.as</a>] (MSC service thread 1-5) JBAS015950: JBoss EAP <a href="http://6.4.0.GA" target="_blank">6.4.0.GA</a> (AS 7.5.0.Final-redhat-21) stopped in 2ms<br><br><br><br></div><div>What I'm doing wrong?<br></div><div>I had a good experience using Keycloak with Widlfy but I still can't put it to work with JBoss EAP 6.4.<br><br></div><div>Please, help me.<br><br></div></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span>-- <br><div><div dir="ltr"><div>Att,</div><div>Paulo Jerônimo</div><div><br></div>Fone: <a href="tel:%2861%29%209504-6178" value="+556195046178" target="_blank">(61) 9504-6178</a></div></div>
</span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div>Att,</div><div>Paulo Jerônimo</div><div><br></div>Fone: <a href="tel:%2861%29%209504-6178" value="+556195046178" target="_blank">(61) 9504-6178</a></div></div>
</div></div>