<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">It's already there if you look at the
<a class="moz-txt-link-freetext" 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>
(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?<br>
<br>
Marek<br>
<br>
On 1.4.2014 17:14, Davide Ungari wrote:<br>
</div>
<blockquote
cite="mid:CA+TL3n2UKGPE3GRL9t=0O1Yozk0h5UUpwdO+pp3kcGFz01Sn+g@mail.gmail.com"
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"><<a moz-do-not-send="true"
href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>></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 class="h5">On 1.4.2014 13:15, Davide Ungari
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<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" => "auth-server.war")]) -
failure description: {"JBAS014771: Services
with missing/unavailable dependencies" =>
["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>
</body>
</html>