<div dir="ltr">It&#39;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&#39;m sorry for the waste of time, again it&#39;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 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&#39;s already there if you look at the
      <a 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 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&#39;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&#39;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&#39;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&#39;m tryng to use keycloak withh mongo.</div>
                      <div><br>
                      </div>
                      <div>I followed the documantation:</div>
                      <div><a 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 (&quot;deploy&quot;) failed - address:
                            ([(&quot;deployment&quot; =&gt; &quot;auth-server.war&quot;)]) -
                            failure description: {&quot;JBAS014771: Services
                            with missing/unavailable dependencies&quot; =&gt;
                            [&quot;jboss.persistenceunit.\&quot;auth-server.war#jpa-keycloak-identity-store\&quot;.__FIRST_PHASE__

                            is missing
                            [jboss.naming.context.java.jboss.datasources.KeycloakDS]&quot;]}</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 href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a 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>