Hi Didier,

Seems like your service registry config location is invalid. In my 
application.properties I always uses file:/ instead of file:// and it works.

Maybe you can tries

*cas.serviceRegistry.config.location=file:/etc/cas/json*
if not ok, you can also try 
*cas.serviceRegistry.config.location=/etc/cas/json*

Also, please note that file:/etc/cas/json does not mean [Your CAS project 
directory]/etc/cas/json. It means [Your disk folder]/etc/cas/json.
In case you want the location to be [Your CAS project directory], you can 
use *cas.serviceRegistry.config.location=classpath:/services*

Hope this helps you!
-Andy

On Wednesday, 9 August 2017 23:53:24 UTC+8, Rémi Cocula wrote:
>
>
> Hi,
>
> Using CAS 5.1
>
> I want to populate the service registry using individual JSON files for 
> each service declaration. 
>
> I added this property in my configuration : 
>
> *cas.serviceRegistry.initFromJson=true*Hence, any file* myapp-123.json* 
> will be scanned to register a service but it only works if such a file 
> reside in a services directory inside the java classpath. 
>
> I would like to externalize these files to a desired local directory. 
>
> I tried to set that in my configuration : 
>
>
> *cas.serviceRegistry.config.location=file://D:/entorno/ide/workspace/sso-cas/dist/etc/cas/services*But
>  
> the D:/entorno/ide/workspace/sso-cas/dist/etc/cas/services does not seam to 
> be scanned.
>
>
>
>

-- 
- 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/322da27e-5d45-4671-a537-39f2c5ee7de7%40apereo.org.

Reply via email to