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.
> To: "Marek Posolda" <mposolda@redhat.com>
> Cc: "Stian Thorgersen" <stian@redhat.com>, keycloak-user@lists.jboss.org
> Sent: Tuesday, 20 May, 2014 8:17:52 AM
> Subject: Re: [keycloak-user] MongoDB - Model provider not found
>
> Hi Marek,
> thanks for your answer.
>
> You could add a paragraph in documentation page
> http://docs.jboss.org/keycloak/docs/1.0-alpha-3/userguide/html_single/index.html#d4e167
> about
> this.
>
>
> --
> Davide
>
>
> On Mon, May 19, 2014 at 10:38 PM, Marek Posolda <mposolda@redhat.com> wrote:
>
> > Hi,
> >
> > 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 .
> >
> > 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.
> >
> > 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" .
> >
> > Marek
> >
> >
> > On 16.5.2014 22:20, Davide Ungari wrote:
> >
> > Hi Stian,
> > I think the problem was that I was running "mvn package" inside
> > /keycloak/distribuition instead it works if your run it from root
> > directory.
> >
> > 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?
> >
> > If you need I'm free to test the import process as you do it.
> >
> > Thanks.
> >
> > --
> > Davide
> >
> >
> > On Thu, May 15, 2014 at 10:31 AM, Stian Thorgersen <stian@redhat.com>wrote:
> >
> >> I'm not sure why the mongo model has been removed from the WAR, I'll look
> >> into that.
> >> "jpa-keycloak-identity-store"
> >>
> >> 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.
> >>
> >> ----- Original Message -----
> >> > From: "Davide Ungari" <ungarida@gmail.com>
> >> > To: keycloak-user@lists.jboss.org
> >> > Sent: Monday, 12 May, 2014 7:13:53 PM
> >> > Subject: Re: [keycloak-user] MongoDB - Model provider not found
> >> >
> >> > I found out that:
> >> > 1- the command "mvn package" does not include mongo module and driver
> >> > 2- there is a regression on data model, updating source of keycloak I
> >> must
> >> > drop database in order to see the admin console works again
> >> > --
> >> > Davide
> >> >
> >> > _______________________________________________
> >> > keycloak-user mailing list
> >> > keycloak-user@lists.jboss.org
> >> > https://lists.jboss.org/mailman/listinfo/keycloak-user
> >>
> >
> >
> >
> > _______________________________________________
> > keycloak-user mailing
> > listkeycloak-user@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/keycloak-user
> >
> >
> >
>