cas.serviceRegistry.config.location not set Absolute path in Window

721 views
Skip to first unread message

Doan Moon

unread,
May 31, 2017, 1:31:51 PM5/31/17
to CAS Community
Hi all !

I built successfully CAS Server 5.0.5 and CAS Management 5.0.5 in the same Window Server ( Use Service Register is Json). In file application.properties of CAS manamement, I set cas.serviceRegistry.config.location is Absolute path to folder Services of CAS Server 5.0.5

##
# Resource-based (JSON/YAML) Service Registry
#
tomcat.url=C:/Program Files/Apache Software Foundation/Tomcat 8.5/webapps/cas//WEB-INF/classes/services
cas.serviceRegistry.config.location=${tomcat.url}

And cas-management.log warning:

2017-06-01 00:08:54,966 WARN [org.apereo.cas.config.JsonServiceRegistryConfiguration] - The location of service definitions class path resource [C:/Program Files/Apache Software Foundation/Tomcat 8.5/webapps/cas//WEB-INF/classes/services] is on the classpath. It is recommended that the location of service definitions be externalized to allow for easier modifications and better sharing of the configuration.

How to share Services Register Json between CAS Server and CAS manament ?

Help me !

Thanks.

Doan Moon

unread,
Jun 1, 2017, 2:08:36 AM6/1/17
to CAS Community
In CAS 4.2.7, This Issue is simple. I set :

##
# JSON Service Registry
#
# Directory location where JSON service files may be found.
tomcat.url=C:/Program Files/Apache Software Foundation/Tomcat 8.5/webapps
#service.registry.config.location=classpath:services
#service.registry.config.location=${tomcat.url}/cas-management/WEB-INF/classes/services
service.registry.config.location=${tomcat.url}/cas/WEB-INF/classes/services

=> Then CAS Server and CAS Management will share the same Folder Service in Machine.

But CAS 5.0.5 is error ?

Vào 00:31:51 UTC+7 Thứ Năm, ngày 01 tháng 6 năm 2017, Doan Moon đã viết:

sesharaju sv

unread,
Jun 5, 2017, 9:27:31 AM6/5/17
to cas-...@apereo.org
its should be prefix by file:// i think.

that should resolve the issue.
> --
> - CAS gitter chatroom: https://gitter.im/apereo/cas
> - CAS mailing list guidelines:
> https://apereo.github.io/cas/Mailing-Lists.html
> - CAS documentation website: https://apereo.github.io/cas
> - CAS project website: https://github.com/apereo/cas
> ---
> 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 cas-user+u...@apereo.org.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/865003de-9235-4f82-a07b-26ea55ca749e%40apereo.org.



--
Venkata S Sadhu (Seshu)
India (Mobile) : +91 7032638062 (WhatsApp)
INDIA

Doan Moon

unread,
Jun 5, 2017, 10:15:35 PM6/5/17
to CAS Community
Thank sesharaju sv ! But i built CAS in Window. I don't know prefix by file:// in window What configuration?

Vào 20:27:31 UTC+7 Thứ Hai, ngày 05 tháng 6 năm 2017, sesharaju sv đã viết:
Reply all
Reply to author
Forward
0 new messages