[keycloak-user] MongoDB and removing datasource KeycloakDS
Marek Posolda
mposolda at redhat.com
Tue Apr 1 11:53:14 EDT 2014
It's already there if you look at the
http://docs.jboss.org/keycloak/docs/1.0-alpha-3/userguide/html/server-installation.html#d4e167
(very last line)
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?
Marek
On 1.4.2014 17:14, Davide Ungari wrote:
> Yes it helps! Now it works, maybe this information should be added to
> the documentation.
>
> Thanks
>
> --
> Davide
>
>
> On Tue, Apr 1, 2014 at 4:06 PM, Marek Posolda <mposolda at redhat.com
> <mailto:mposolda at redhat.com>> wrote:
>
> |Hi,
>
> 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
> .
>
> 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.
>
> You need to either:
> - Remove both KeycloakDS and persistence.xml file (that's
> recommended to have a bit faster startup time)
> - Keep both datasource and persistence.xml
>
> Hope it helps,
> Marek||
>
> |
> On 1.4.2014 13:15, Davide Ungari wrote:
>> Hi everybody,
>> I'm tryng to use keycloak withh mongo.
>>
>> I followed the documantation:
>> http://docs.jboss.org/keycloak/docs/1.0-alpha-3/userguide/html/server-installation.html#d4e167
>>
>> But removing datasource |KeycloakDS| from
>> |standalone/configuration/standalone.xml causes an error message:|
>> |
>> |
>> |
>> 13:10:56,838 INFO [org.jboss.as.jpa] (MSC service thread 1-1)
>> JBAS011401: Read persistence.xml for jpa-keycloak-identity-store
>> 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]"]}
>>
>> |
>> Suggestions?
>>
>> Thanks
>> --
>> Davide
>>
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org <mailto:keycloak-user at lists.jboss.org>
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20140401/64fc5bed/attachment.html
More information about the keycloak-user
mailing list