Hi.
I managed to solve -temporarily, at least- this issue lowering the version
for to:
build.gradle:
...
implementation 'org.apereo.cas:cas-server-support-mongo-ticket-registry
*:6.4.0-RC1*'
...
Described error on my previous post shows up with the default version for
cas 6.4.2
El lunes, 18 de octubre de 2021 a las 19:48:43 UTC+2, Fabio Bettiol
escribió:
> Hi guys.... Any ... ?
>
> El lunes, 11 de octubre de 2021 a las 10:05:18 UTC+2, Fabio Bettiol
> escribió:
>
>> Hi.
>> While trying to deploy Mongo Service Registry and Mongo Ticket Registry
>> (CAS 6.4.0), I get the following error (both services currently working
>> fine in 6.3.2, same server):
>>
>> *Error upon running sudo ./gradle run --info*
>>
>> ***************************
>> APPLICATION FAILED TO START
>> ***************************
>>
>> Description:
>>
>> Parameter 1 of method gridFsTemplate in
>> org.springframework.boot.autoconfigure.data.mongo.MongoDatabaseFactoryDependentConfiguration
>>
>> required a single bean, but 2 were found:
>> - mongoDbServiceRegistryTemplate: defined by method
>> 'mongoDbServiceRegistryTemplate' in class path resource
>> [org/apereo/cas/config/MongoDbServiceRegistryConfiguration.class]
>> - mongoDbTicketRegistryTemplate: defined in BeanDefinition
>> defined in class path resource
>> [org/apereo/cas/config/MongoDbTicketRegistryConfiguration.class]
>>
>> Action:
>>
>> Consider marking one of the beans as @Primary, updating the consumer to
>> accept multiple beans, or using @Qualifier to identify the bean that should
>> be consumed
>> >
>>
>> > Task :run FAILED
>>
>>
>>
>> *From gradle.build: *
>>
>> implementation
>> "org.apereo.cas:cas-server-support-mongo:${project.'cas.version'}"
>> implementation
>> "org.apereo.cas:cas-server-support-mongo-service-registry:${project.'cas.version'}"
>> implementation
>> "org.apereo.cas:cas-server-support-mongo-ticket-registry:${project.'cas.version'}"
>>
>>
>>
>> *From cas.proiperties:*
>>
>> # =======================
>> # MongoDB Vars
>> # =======================
>> mongo.db:dbnamehere
>> mongo.creds:userhere:passwordhere
>> mongo.hosts:localhost
>> mongo.uri:mongodb://${mongo.creds}@${mongo.hosts}/${mongo.db}
>>
>> # =======================
>> # MongoDB Authentication
>> # =======================
>>
>> cas.authn.mongo.client-uri=mongodb://${mongo.creds}@${mongo.hosts}/${mongo.db}
>> cas.authn.mongo.collection=ticketGrantingTicketsCollection
>> cas.authn.mongo.database-name=dbnamehere
>> cas.authn.mongo.host=localhost
>> cas.authn.mongo.password=passwordhere
>>
>> # =======================
>> # MongoDB Ticket registry
>> # =======================
>>
>> cas.ticket.registry.mongo.client-uri=mongodb://${mongo.creds}@${mongo.hosts}/${mongo.db}
>> cas.ticket.registry.mongo.database-name=dbnamehere
>> cas.ticket.registry.mongo.host=localhost
>> cas.ticket.registry.mongo.password= passwordhere
>> cas.ticket.registry.mongo.port=27017
>>
>> # =======================
>> # Mongo DB Service registry
>> # =======================
>>
>> cas.service-registry.mongo.client-uri=mongodb://${mongo.creds}@${mongo.hosts}/${mongo.db}
>> cas.service-registry.mongo.collection:casServiceRegistry
>> cas.service-registry.mongo.database-name=dbnamehere
>> cas.service-registry.mongo.host=localhost
>> cas.service-registry.mongo.password= passwordhere
>>
>>
>> Any help will be appreciated.
>> Thank you.
>>
>> Fabio.
>>
>
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/80f14bc2-619d-472f-92ed-f147db01111dn%40apereo.org.