<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">No problem, everyone is doing mistakes
      and for me it's good to know that someone is using mongo model <span
        class="moz-smiley-s1"><span> :-) </span></span><br>
      <br>
      Thanks for the suggestion, will try to improve docs a bit to
      ensure that no-one will do similar mistake in the future.<br>
      <br>
      Thanks,<br>
      Marek<br>
      <br>
      On 1.4.2014 18:06, Davide Ungari wrote:<br>
    </div>
    <blockquote
cite="mid:CA+TL3n05CWsKpoG=9m0cjYkNB6gx5aw+sqvZam-9bvEnJq5ceg@mail.gmail.com"
      type="cite">
      <div dir="ltr">It's my fault, I always read too fast the
        documentation.
        <div><br>
        </div>
        <div>I can suggest to use a ordered list, maybe could help to
          emphasize that steps are 2. </div>
        <div><br>
        </div>
        <div>I'm sorry for the waste of time, again it's my fault.</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div>--</div>
          Davide</div>
        <br>
        <br>
        <div class="gmail_quote">On Tue, Apr 1, 2014 at 5:53 PM, Marek
          Posolda <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.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 bgcolor="#FFFFFF" text="#000000">
              <div>It's already there if you look at the <a
                  moz-do-not-send="true"
href="http://docs.jboss.org/keycloak/docs/1.0-alpha-3/userguide/html/server-installation.html#d4e167"
                  target="_blank">http://docs.jboss.org/keycloak/docs/1.0-alpha-3/userguide/html/server-installation.html#d4e167</a>
                (very last line)<br>
                <br>
                Did you just overlook it or is it not understandable
                that both actions are needed? I wonder if I should
                somehow rewrite this paragraph to emphasize that both
                things (removing datasource and persistence.xml) are
                required? wdyt?<span class="HOEnZb"><font
                    color="#888888"><br>
                    <br>
                    Marek</font></span>
                <div>
                  <div class="h5"><br>
                    <br>
                    On 1.4.2014 17:14, Davide Ungari wrote:<br>
                  </div>
                </div>
              </div>
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <div dir="ltr">Yes it helps! Now it works, maybe
                      this information should be added to the
                      documentation.
                      <div><br>
                      </div>
                      <div>Thanks</div>
                    </div>
                    <div class="gmail_extra"><br clear="all">
                      <div>
                        <div>--</div>
                        Davide</div>
                      <br>
                      <br>
                      <div class="gmail_quote">On Tue, Apr 1, 2014 at
                        4:06 PM, Marek Posolda <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:mposolda@redhat.com"
                            target="_blank">mposolda@redhat.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 bgcolor="#FFFFFF" text="#000000">
                            <div><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> <br>
                                <br>
                              </code>
                              <div>
                                <div>On 1.4.2014 13:15, Davide Ungari
                                  wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div>
                                  <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"
                                        target="_blank">http://docs.jboss.org/keycloak/docs/1.0-alpha-3/userguide/html/server-installation.html#d4e167</a></div>
                                    <div><br>
                                    </div>
                                    <div>But removing <span>datasource </span><code
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> from </span><code
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
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
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
                                           [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></fieldset>
                                  <br>
                                </div>
                              </div>
                              <pre>_______________________________________________
keycloak-user mailing list
<a moz-do-not-send="true" href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>