<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><code>Hi,<br>
        <br>
        It's ok to remove KeycloakDS datasource from standalone.xml if
        you switch to mongo model, but note that in this case, you
        should also remove file
        standalone/deployments/auth-server.war/WEB-INF/classes/META-INF/persistence.xml
        .<br>
        <br>
        If you remove just datasource, but keep persistence.xml, then
        Application server will automatically try to initialize JPA from
        persistence.xml file, but in this case it won't work as
        persistence.xml contains reference to KeycloakDS datasource,
        which is not available. <br>
        <br>
        You need to either:<br>
        - Remove both KeycloakDS and persistence.xml file (that's
        recommended to have a bit faster startup time)<br>
        - Keep both datasource and persistence.xml<br>
        <br>
        Hope it helps,<br>
        Marek</code><code class="literal"> <br>
        <br>
      </code>On 1.4.2014 13:15, Davide Ungari wrote:<br>
    </div>
    <blockquote
cite="mid:CA+TL3n2Cm=Mfp9z26cVtprUbp_W3fAkcn+-k4yKMxAcqG7euJQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi everybody,
        <div>I'm tryng to use keycloak withh mongo.</div>
        <div><br>
        </div>
        <div>I followed the documantation:</div>
        <div><a moz-do-not-send="true"
href="http://docs.jboss.org/keycloak/docs/1.0-alpha-3/userguide/html/server-installation.html#d4e167">http://docs.jboss.org/keycloak/docs/1.0-alpha-3/userguide/html/server-installation.html#d4e167</a></div>
        <div><br>
        </div>
        <div>But removing&nbsp;<span
            style="color:rgb(51,51,51);font-family:'Lucida
Grande',Geneva,Verdana,Arial,sans-serif;font-size:12px;line-height:18px;text-align:justify">datasource&nbsp;</span><code
            class=""
style="font-size:0.9em;font-family:courrier,monospace;white-space:nowrap;color:rgb(51,51,51);line-height:18px;text-align:justify">KeycloakDS</code><span
            style="color:rgb(51,51,51);font-family:'Lucida
Grande',Geneva,Verdana,Arial,sans-serif;font-size:12px;line-height:18px;text-align:justify">&nbsp;from&nbsp;</span><code
            class=""
style="font-size:0.9em;font-family:courrier,monospace;white-space:nowrap;color:rgb(51,51,51);line-height:18px;text-align:justify">standalone/configuration/standalone.xml
            causes an error message:</code></div>
        <div><code class=""
style="font-size:0.9em;font-family:courrier,monospace;white-space:nowrap;color:rgb(51,51,51);line-height:18px;text-align:justify"><br>
          </code></div>
        <div><code class=""
style="font-size:0.9em;font-family:courrier,monospace;white-space:nowrap;color:rgb(51,51,51);line-height:18px;text-align:justify">
            <div>
              13:10:56,838 INFO &nbsp;[org.jboss.as.jpa] (MSC service thread
              1-1) JBAS011401: Read persistence.xml for
              jpa-keycloak-identity-store</div>
            <div>13:10:57,321 ERROR
              [org.jboss.as.controller.management-operation] (Controller
              Boot Thread) JBAS014613: Operation ("deploy") failed -
              address: ([("deployment" =&gt; "auth-server.war")]) -
              failure description: {"JBAS014771: Services with
              missing/unavailable dependencies" =&gt;
              ["jboss.persistenceunit.\"auth-server.war#jpa-keycloak-identity-store\".__FIRST_PHASE__
              is missing
              [jboss.naming.context.java.jboss.datasources.KeycloakDS]"]}</div>
            <div><br>
            </div>
          </code></div>
        <div>Suggestions?</div>
        <div><br>
        </div>
        <div>Thanks<br clear="all">
          <div>
            <div>--</div>
            Davide</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>