<div dir="ltr">Hi Stian,<div>I'm aligned to master.</div><div>Could you show me the class I must read to understand how to configure it?</div></div><div class="gmail_extra"><br clear="all"><div><div>--</div>Davide</div>
<br><br><div class="gmail_quote">On Tue, May 20, 2014 at 10:45 AM, Stian Thorgersen <span dir="ltr"><<a 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">
In master this has recently changed and is now configured in a config file instead of through system properties. The documentation will be updated in due time.<br>
<div class="im HOEnZb"><br>
----- Original Message -----<br>
> From: "Davide Ungari" <<a href="mailto:ungarida@gmail.com">ungarida@gmail.com</a>><br>
</div><div class="HOEnZb"><div class="h5">> To: "Marek Posolda" <<a href="mailto:mposolda@redhat.com">mposolda@redhat.com</a>><br>
> Cc: "Stian Thorgersen" <<a href="mailto:stian@redhat.com">stian@redhat.com</a>>, <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> Sent: Tuesday, 20 May, 2014 8:17:52 AM<br>
> Subject: Re: [keycloak-user] MongoDB - Model provider not found<br>
><br>
> Hi Marek,<br>
> thanks for your answer.<br>
><br>
> You could add a paragraph in documentation page<br>
> <a href="http://docs.jboss.org/keycloak/docs/1.0-alpha-3/userguide/html_single/index.html#d4e167" target="_blank">http://docs.jboss.org/keycloak/docs/1.0-alpha-3/userguide/html_single/index.html#d4e167</a><br>
> about<br>
> this.<br>
><br>
><br>
> --<br>
> Davide<br>
><br>
><br>
> On Mon, May 19, 2014 at 10:38 PM, Marek Posolda <<a href="mailto:mposolda@redhat.com">mposolda@redhat.com</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I guess you removed persistence.xml from auth-server.war right? In newest<br>
> > version, persistence.xml contains configuration of model-api, but also for<br>
> > audit-api . Default implementation of audit-api is based on JPA and needs<br>
> > persistence.xml .<br>
> ><br>
> > Thing is that default implementation of audit-api is always based on JPA<br>
> > even if you changed your model implementation to "mongo". My opinion is,<br>
> > that we should change this behaviour. So default implementation of<br>
> > audit-api will be same like the chosen implementation of model-api. So if<br>
> > someone (like you) changed the implementation of model to be based on<br>
> > mongo, the audit-api will automatically use mongo as well. I will discuss<br>
> > with guys about this tomorrow.<br>
> ><br>
> > Until this is done, I think that easiest solution for you is to manually<br>
> > switch audit-api to use mongo as well. So in addition to property<br>
> > "-Dkeycloak.model=mongo" you also need to add property<br>
> > "-Dkeycloak.audit=mongo" .<br>
> ><br>
> > Marek<br>
> ><br>
> ><br>
> > On 16.5.2014 22:20, Davide Ungari wrote:<br>
> ><br>
> > Hi Stian,<br>
> > I think the problem was that I was running "mvn package" inside<br>
> > /keycloak/distribuition instead it works if your run it from root<br>
> > directory.<br>
> ><br>
> > I have all the jars, model-mongo included, but the application fails at<br>
> > startup with error message "No Persistence provider for EntityManager named<br>
> > jpa-keycloak-audit-store\". What am I doing wrong this time?<br>
> ><br>
> > If you need I'm free to test the import process as you do it.<br>
> ><br>
> > Thanks.<br>
> ><br>
> > --<br>
> > Davide<br>
> ><br>
> ><br>
> > On Thu, May 15, 2014 at 10:31 AM, Stian Thorgersen <<a href="mailto:stian@redhat.com">stian@redhat.com</a>>wrote:<br>
> ><br>
> >> I'm not sure why the mongo model has been removed from the WAR, I'll look<br>
> >> into that.<br>
> >> "jpa-keycloak-identity-store"<br>
> >><br>
> >> We don't yet have support for upgrading the database when upgrading<br>
> >> Keycloak. This will be added soon. The plan is to provide a mechanism to<br>
> >> export the database to a json file, and after installing a new version of<br>
> >> Keycloak you import this json file again. We'll make this import backwards<br>
> >> compatible so you can import a json file from any older versions of<br>
> >> Keycloak.<br>
> >><br>
> >> ----- Original Message -----<br>
> >> > From: "Davide Ungari" <<a href="mailto:ungarida@gmail.com">ungarida@gmail.com</a>><br>
> >> > To: <a 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<br>
> >> must<br>
> >> > drop database in order to see the admin console works again<br>
> >> > --<br>
> >> > Davide<br>
> >> ><br>
> >> > _______________________________________________<br>
> >> > keycloak-user mailing list<br>
> >> > <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
> >> > <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
> >><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > keycloak-user mailing<br>
> > listkeycloak-user@lists.jboss.orghttps://<a href="http://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
> ><br>
> ><br>
> ><br>
><br>
</div></div></blockquote></div><br></div>