<div dir="ltr">I finally solved my problem, these are the steps:<div><br></div><div>1. Download and install wildfly 8.2</div><div>2. Get keycloak war distribution and install it: <a href="http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/server-installation.html#WAR_distribution_installation">http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/server-installation.html#WAR_distribution_installation</a></div><div>3. Install JBoss/Wildfly Adapter for keycloak: <a href="http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/ch08.html#jboss-adapter">http://docs.jboss.org/keycloak/docs/1.2.0.Beta1/userguide/html/ch08.html#jboss-adapter</a><br></div><div>4. Get Aerogear UPS 1.0.3</div><div>5. Get aerogear the realm for keyclock and when you are creating a new realm upload it: <a href="https://raw.githubusercontent.com/aerogear/aerogear-unifiedpush-server/1.0.3/servers/auth-server/src/main/webapp/WEB-INF/ups-realm.json">https://raw.githubusercontent.com/aerogear/aerogear-unifiedpush-server/1.0.3/servers/auth-server/src/main/webapp/WEB-INF/ups-realm.json</a></div><div>6. Modify the persistence.xml inside the <span style="font-size:12.8000001907349px"> </span><b><span style="font-size:12.8000001907349px">unifiedpush-server-wildfly.war/WEB-INF/lib/</span>unifiedpush-model-jpa-1.0.3.jar </b>change this line:</div><div>
<p class=""><property name="hibernate.hbm2ddl.auto" value="validate"/></p><p class="">for</p><p class="">
</p><p class=""><property name="hibernate.hbm2ddl.auto" value="update"/></p><p class="">7. create a datasource for both Aerogear UPS and Keycloak:</p><p class="">
</p><p class="">unifiedpush-ds.xml:</p><p class=""><?xml version="1.0" encoding="UTF-8"?></p><p class=""><datasources xmlns="<a href="http://www.jboss.org/ironjacamar/schema">http://www.jboss.org/ironjacamar/schema</a>"><br></p><p class=""> <datasource jndi-name="java:jboss/datasources/UnifiedPushDS" pool-name="UnifiedPushDS" enabled="true" use-java-context="true"></p><p class=""> <connection-url>jdbc:mysql://host:3306/unifiedpush?useUnicode=true&amp;characterEncoding=UTF-8</connection-url></p><p class=""> <driver>com.mysql</driver></p><p class=""> <security></p><p class=""> <user-name>your-username</user-name></p><p class=""> <password>your-secret</password></p><p class=""> </security></p><p class=""> </datasource></p><p class=""> <datasource jndi-name="java:jboss/datasources/KeycloakDS"</p><p class=""> pool-name="KeycloakDS" enabled="true" use-java-context="true"></p><p class=""> <connection-url>jdbc:mysql://host:3306/keycloak?useUnicode=true&amp;characterEncoding=UTF-8</connection-url></p><p class=""> <driver>com.mysql</driver></p><p class=""> <security></p><p class=""> <user-name>your-username</user-name></p><p class=""> <password>your-secret</password></p><p class=""> </security></p><p class=""> </datasource></p><p class="">
</p><p class=""></datasources></p><p class="">8. start your server </p></div>
</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 1, 2015 at 10:04 AM, Rodrigo Del Canto <span dir="ltr"><<a href="mailto:delkant@gmail.com" target="_blank">delkant@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Hello!</div><div class="gmail_extra"><br></div><div class="gmail_extra">I would like to know... Is it possible to run a UPS war using a custom Keycloak server in Wildfly ??</div><div class="gmail_extra"><br></div><div class="gmail_extra">I have tried to deploy the <b>unifiedpush-server-wildfly.war </b>on a Wildfly 8.2 with Keycloak on it, but I'm getting some dependencies errors saying that <b>unifiedpush-auth-server.war </b>is required and not installed, can I change this? I would like to make the configurations I need to the Keycloak instance I'm running already.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks a lot!</div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra">Rodrigo</div>
</font></span></div>
</blockquote></div><br></div>