No problem, everyone is doing mistakes and for me it's good to know that
someone is using mongo model :-)
Thanks for the suggestion, will try to improve docs a bit to ensure that
no-one will do similar mistake in the future.
Thanks,
Marek
On 1.4.2014 18:06, Davide Ungari wrote:
It's my fault, I always read too fast the documentation.
I can suggest to use a ordered list, maybe could help to emphasize
that steps are 2.
I'm sorry for the waste of time, again it's my fault.
--
Davide
On Tue, Apr 1, 2014 at 5:53 PM, Marek Posolda <mposolda(a)redhat.com
<mailto:mposolda@redhat.com>> wrote:
It's already there if you look at the
http://docs.jboss.org/keycloak/docs/1.0-alpha-3/userguide/html/server-ins...
(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(a)redhat.com <mailto:mposolda@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-ins...
>>
>> 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(a)lists.jboss.org
<mailto:keycloak-user@lists.jboss.org>
>>
https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>