Registry service build run failed

33 views
Skip to first unread message

Andrea Bellizzi

unread,
Dec 5, 2018, 2:51:47 PM12/5/18
to CAS Community
I'm trying to run cas server with services. I've put a json file in /home/cas/Desktop/cas-overlay-template-master/src/resources/services and this properties in cas.properties located in /etc/cas/config
cas.serviceRegistry.initFromJson=true
cas.serviceRegistry.config.location=file:///home/cas/Desktop/cas-overlay-template-master/src/resources/services

When I run the server, it fails with this error:

2018-12-05 20:47:17,211 ERROR [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter] - <
                                                                                                                                                                                            
***************************                                                                                                                                                                 
APPLICATION FAILED TO START                                                                                                                                                                 
***************************                                                                                                                                                                 
                                                                                                                                                                                            
Description:                                                                                                                                                                                
                                                                                                                                                                                            
Binding to target [Bindable@4d41ba0f type = org.apereo.cas.configuration.CasConfigurationProperties, value = 'provided', annotations = array<Annotation>[@org.springframework.boot.context.properties.ConfigurationProperties(value=cas, prefix=cas, ignoreInvalidFields=false, ignoreUnknownFields=false)]] failed:                                                                     
                                                                                                                                                                                            
    Property: cas.serviceregistry.config.location                                                                                                                                           
    Value: file:///home/cas/Desktop/cas-overlay-template-master/src/resources/services                                                                                                      
    Origin: "cas.serviceRegistry.config.location" from property source "bootstrapProperties"                                                                                                
    Reason: The elements [cas.serviceregistry.config.location] were left unbound.                                                                                                           
                                                                                                                                                                                            
Action:                                                                                                                                                                                     
                                                                                                                                                                                            
Update your application's configuration                                                                                                                                                     
>                                                                                                                                                                                           

> Task :run FAILED

FAILURE: Build failed with an exception.

How can I fix this?

Andy Ng

unread,
Dec 5, 2018, 11:49:46 PM12/5/18
to CAS Community
Try file:/ instead of file:///, might be the issue -Andy

Andrea Bellizzi

unread,
Dec 6, 2018, 1:11:21 AM12/6/18
to CAS Community
I’ve tried all type of path with file:// file:/ file :/// but none of these work

Andy Ng

unread,
Dec 6, 2018, 1:17:14 AM12/6/18
to CAS Community
Have you include this: https://apereo.github.io/cas/5.3.x/installation/JSON-Service-Management.html
compile "org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}"


Also, which version of CAS are you using?

If you are using 5.3.x, the properties that you tried to use (cas.serviceRegistry.config.location) is incorrect https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties.html#cas-properties
If you indeed are using 5.3.x Try cas.serviceRegistry.json.location instead


Cheers!
-Andy

Andrea Bellizzi

unread,
Dec 6, 2018, 1:55:00 AM12/6/18
to CAS Community
IT WORKS, OMG I love you man, thank you very very very very very very very very very much, you saved me <3

Andy Ng

unread,
Dec 6, 2018, 1:59:04 AM12/6/18
to CAS Community
Hi Andrea,

No problem, this is why this community exists, is for people to help other people out :D

Anyway glad it helps!

Cheers!
- Andy
Reply all
Reply to author
Forward
0 new messages