<div dir="ltr"><div style>Finally, I found the root cause of my problem! My fault.</div><div style><br></div><div style>Due a little bug when I starts standalone.sh on Cygwin environment for JBoss EAP 6.4 I set a value $JBOSS_HOME/modules for JBOSS_MODULEPATH variable. The problem was that when I run the following command:</div><div style><br></div><div style>JBOSS_HOME=$PWD/jboss-eap-6.4 jboss-eap-6.4/bin/standalone.sh --server-config standalone-keycloak.xml</div><div style><br></div><div style>I also need change the value for JBOSS_MODULEPATH on this command line</div><div style><br></div><div style>Or alternatively unset JBOSS_MODULEPATH variable and get the previous little bug:</div><div style><br></div><div style><div>$ JBOSS_HOME=$PWD/jboss-eap-6.4 jboss-eap-6.4/bin/standalone.sh --server-config standalone-keycloak.xml</div><div>cygpath: can&#39;t convert empty path</div><div><br></div></div><div style>Thats it! Keycloak 1.3.1 works with JBoss EAP 6.4. No doubt.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-24 17:23 GMT-03:00 Paulo Jerônimo <span dir="ltr">&lt;<a href="mailto:paulojeronimo@gmail.com" target="_blank">paulojeronimo@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">In my investigation of this problem, I identified that if I run the steps described to test the Keycloak 1.3.1 + JBoss EAP 6.4 on a Linux environment with OpenJDK 8 I don&#39;t catch problems. So, it seems to be an execution problem in Windows environment. I will keep doing my research to identify the cause.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-06-24 16:04 GMT-03:00 Paulo Jerônimo <span dir="ltr">&lt;<a href="mailto:paulojeronimo@gmail.com" target="_blank">paulojeronimo@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">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><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">&lt;<a href="mailto:paulojeronimo@gmail.com" target="_blank">paulojeronimo@gmail.com</a>&gt;</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 &#39;subsystem.*keycloak&#39; jboss-eap-6.4/standalone/configuration/standalone.xml</div><span><div>        &lt;subsystem xmlns=&quot;urn:jboss:domain:keycloak:1.1&quot;&gt;</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">&lt;<a href="mailto:vineet.chaudhary@praxify.com" target="_blank">vineet.chaudhary@praxify.com</a>&gt;</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">&lt;subsystem xmlns=&quot;urn:jboss:domain:</span><span style="font-size:12.8000001907349px">keycloak:1.0&quot;&gt; to</span><br></div><div><span style="font-size:12.8000001907349px">&lt;subsystem xmlns=&quot;urn:jboss:domain:</span><span style="font-size:12.8000001907349px">keycloak:1.1&quot;&gt;</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">&lt;<a href="mailto:paulojeronimo@gmail.com" target="_blank">paulojeronimo@gmail.com</a>&gt;</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 &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<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:&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" 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&#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>
</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></div></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></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Att,</div><div>Paulo Jerônimo</div><div><br></div>Fone: (61) 9504-6178</div></div>
</div>