<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">Hi,<br>
<br>
I guess you removed persistence.xml from auth-server.war right? In
newest version, persistence.xml contains configuration of
model-api, but also for audit-api . Default implementation of
audit-api is based on JPA and needs persistence.xml . <br>
<br>
Thing is that default implementation of audit-api is always based
on JPA even if you changed your model implementation to "mongo".
My opinion is, that we should change this behaviour. So default
implementation of audit-api will be same like the chosen
implementation of model-api. So if someone (like you) changed the
implementation of model to be based on mongo, the audit-api will
automatically use mongo as well. I will discuss with guys about
this tomorrow.<br>
<br>
Until this is done, I think that easiest solution for you is to
manually switch audit-api to use mongo as well. So in addition to
property "-Dkeycloak.model=mongo" you also need to add property
"-Dkeycloak.audit=mongo" .<br>
<br>
Marek<br>
<br>
On 16.5.2014 22:20, Davide Ungari wrote:<br>
</div>
<blockquote
cite="mid:CA+TL3n1dWC_BNT_JbEAhgP2_xmcsQDTDvpJpUkYh+11UX3ZmpQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Stian,
<div>I think the problem was that I was running "mvn package"
inside /keycloak/distribuition instead it works if your run it
from root directory.
<div><br>
</div>
<div>I have all the jars, model-mongo included, but the
application fails at startup with error message "No
Persistence provider for EntityManager named
jpa-keycloak-audit-store\". What am I doing wrong this time?</div>
<div><br>
</div>
<div>If you need I'm free to test the import process as you do
it.</div>
<div><br>
</div>
<div>Thanks.</div>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div>--</div>
Davide</div>
<br>
<br>
<div class="gmail_quote">On Thu, May 15, 2014 at 10:31 AM, Stian
Thorgersen <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm not sure why the mongo model has been removed from the
WAR, I'll look into that.<br>
"jpa-keycloak-identity-store"<br>
We don't yet have support for upgrading the database when
upgrading Keycloak. This will be added soon. The plan is to
provide a mechanism to export the database to a json file,
and after installing a new version of Keycloak you import
this json file again. We'll make this import backwards
compatible so you can import a json file from any older
versions of Keycloak.<br>
<div>
<div class="h5"><br>
----- Original Message -----<br>
> From: "Davide Ungari" <<a moz-do-not-send="true"
href="mailto:ungarida@gmail.com">ungarida@gmail.com</a>><br>
> To: <a moz-do-not-send="true"
href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> Sent: Monday, 12 May, 2014 7:13:53 PM<br>
> Subject: Re: [keycloak-user] MongoDB - Model
provider not found<br>
><br>
> I found out that:<br>
> 1- the command "mvn package" does not include mongo
module and driver<br>
> 2- there is a regression on data model, updating
source of keycloak I must<br>
> drop database in order to see the admin console
works again<br>
> --<br>
> Davide<br>
><br>
</div>
</div>
> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a moz-do-not-send="true"
href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> <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><br>
</blockquote>
</div>
<br>
</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>