<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Bill,<br>
    <br>
    We do not see the war being redeployed upon startup.<br>
    <br>
    <br>
    Stian,<br>
    <br>
    We are deploying a non-JEE application to the Keycloak Wildfly
    instance and our initial setup process includes the following
    commands:<br>
    <br>
    <br>
    sudo ./jboss-cli.sh -c &lt;&lt;EOF<br>
    module add --name=org.postgres
    --resources=${KEYCLOAK_INSTALL_DIR}/${JDBC_FILENAME}
    --dependencies=javax.api,javax.transaction.api<br>
/subsystem=datasources/jdbc-driver=postgres:add(driver-name="postgres",driver-module-name="org.postgres",driver-class-name=org.postgresql.Driver)<br>
    data-source add --jndi-name=java:/PostgresDS --name=PostgrePool
    --connection-url=jdbc:postgresql://${POSTGRES_SERVER_URL}
    --driver-name=postgres --user-name=&lt;&lt;USERNAME&gt;&gt;
    --password=&lt;&lt;PASSWORD&gt;&gt;<br>
    /core-service=management/security-realm=ApplicationRealm/server-identity=ssl/:add(keystore-path=keystore.jks,
    keystore-relative-to=jboss.server.config.dir,
    keystore-password=&lt;&lt;PASSWORD&gt;&gt;, alias=keystore,
    key-password=&lt;&lt;PASSWORD&gt;&gt;)<br>
    EOF<br>
    <br>
    sleep 10<br>
    <br>
    sudo service wildfly restart<br>
    <br>
    sleep 10<br>
    <br>
    sudo ./jboss-cli.sh -c &lt;&lt;EOF<br>
    /subsystem=undertow/server=default-server/https-listener=https/:add(socket-binding=https,
    security-realm=ApplicationRealm)<br>
    EOF<br>
    <br>
    sleep 10<br>
    <br>
    sudo service wildfly restart<br>
    <br>
    sleep 10<br>
    <br>
    cd ${KEYCLOAK_INSTALL_DIR}/bin<br>
    sudo ./jboss-cli.sh -c --file=adapter-install.cli<br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 06/06/2016 01:18 PM, Stian
      Thorgersen wrote:<br>
    </div>
    <blockquote
cite="mid:CAJgngAeVwuGyWf_2FUNemjA_42Q4GCgiTyaPRWiUZt9om5kbEw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Do you modify the standalone distribution in any
        way? Do you deploy applications to it? Anything else that you do
        to it that could affect this?</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 6 June 2016 at 16:52, Brooks Isoldi
          <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:brooks.isoldi@traversed.com" target="_blank">brooks.isoldi@traversed.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> I'm using the
              standalone distribution of 1.9.4.Final.<br>
              <br>
              We have had this issue after executing "sudo service
              wildfly restart" on command line.  We've also had it
              happen after starting Keycloak by simply running
              ./$JBOSS_HOME/bin/standalone.sh and after it starts up,
              hitting cntrl-c.  Additionally, we think it happened once
              while running shutdown --restart=true within the JBOSS
              CLI.<br>
              <br>
              This has happened numerous times now, however we have not
              been able to create a reliable reproduction procedure.  I
              don't have logs to share right now, however I have seen in
              the server.log references to keycloak-server.war being
              undeployed.
              <div>
                <div class="h5"><br>
                  <br>
                  <br>
                  <br>
                  <div>On 06/06/2016 02:00 AM, Stian Thorgersen wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">What version of Keycloak and what
                      distribution (standalone, overlay or demo) do you
                      use?<br>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On 3 June 2016 at 21:56,
                        Brooks Isoldi <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:brooks.isoldi@traversed.com"
                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:brooks.isoldi@traversed.com">brooks.isoldi@traversed.com</a></a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">I've configured
                          Keycloak as a service on Ubuntu 14.04 and I'm
                          finding<br>
                          that terminating and restarting the Wildfly
                          service (sudo service<br>
                          wildfly restart) sometimes results in the
                          keycloak-server.war being<br>
                          undeployed and removed.<br>
                          <br>
                          Other times it happens by restarting from
                          within the CLI.<br>
                          <br>
                          How do I restart Wildfly without terminating
                          Keycloak?<br>
                          <br>
                          Thank you.<br>
                          <br>
                          <br>
                          <br>
                          -Brooks<br>
_______________________________________________<br>
                          keycloak-dev mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:keycloak-dev@lists.jboss.org"
                            target="_blank">keycloak-dev@lists.jboss.org</a><br>
                          <a moz-do-not-send="true"
                            href="https://lists.jboss.org/mailman/listinfo/keycloak-dev"
                            rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            keycloak-dev mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.jboss.org/mailman/listinfo/keycloak-dev"
              rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>