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?