Hello Didier,

not sure because Iam just beginning to work on it,
but in other mails I saw, that they configure the location-path with only one 
slash after the file in the string.

In your cas may be this “cas.serviceRegistry.config.location: 
file:/etc/cas/services“ would work?

Kind Regards Josef


Von: cas-user@apereo.org [mailto:cas-user@apereo.org] Im Auftrag von Didier 
Capdevielle
Gesendet: Mittwoch, 20. September 2017 10:37
An: CAS Community
Betreff: [cas-user] Re: Service registry initialisation using JSON files. Help 
needed

Hi all,
I use CAS server 5.1.3 on Debian Stretch with Tomcat8 and Java 1.8
In cas.properties,
cas.serviceRegistry.initFromJson=true
cas.serviceRegistry.config.location=file://etc/cas/json
In pom.xml, the needed dependency.
But don't work (NB: It works if i cas.serviceRedistry.config.location is in 
comment)

When i want to start Tomcat8, here is the catalina.out :
2017-09-20 10:15:56,974 WARN 
[org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext]
 - <Exception encountered during context initialization - cancelling refresh 
attempt: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'serviceRegistryInitializer': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: IO error 
opening file stream.>
2017-09-20 10:15:56,974 WARN 
[org.apereo.cas.services.ServiceRegistryConfigWatcher] - <Directory key is no 
longer valid. Quitting watcher service>
Exception in thread "org.apereo.cas.services.JsonServiceRegistryDao" 
java.nio.file.ClosedWatchServiceException
        at 
sun.nio.fs.AbstractWatchService.checkOpen(AbstractWatchService.java:80)
        at 
sun.nio.fs.AbstractWatchService.checkKey(AbstractWatchService.java:92)
        at sun.nio.fs.AbstractWatchService.take(AbstractWatchService.java:119)
        at 
org.apereo.cas.services.ServiceRegistryConfigWatcher.run(ServiceRegistryConfigWatcher.java:72)
        at java.lang.Thread.run(Thread.java:748)
2017-09-20 10:15:57.000 INFO net.spy.memcached.MemcachedClient:  Suppressing 
duplicate attempt to shut down
2017-09-20 10:15:57.005 INFO net.spy.memcached.MemcachedConnection:  Shut down 
memcached client
20-Sep-2017 10:15:57.024 SEVERE [localhost-startStop-1] 
org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: 
start:
 org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
        at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'serviceRegistryInitializer': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: IO error 
opening file stream.
(and so on)

Any idea ? any help ?
Thanks in advance.

Best regards,



--
- 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 cas-user+unsubscr...@apereo.org<mailto:cas-user+unsubscr...@apereo.org>.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/a98cda0c-83ab-4eb8-91ef-b6f5000b224d%40apereo.org<https://groups.google.com/a/apereo.org/d/msgid/cas-user/a98cda0c-83ab-4eb8-91ef-b6f5000b224d%40apereo.org?utm_medium=email&utm_source=footer>.

-- 
- 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 cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/1aebb7490e56428c8bc30d5435955da4%40HE105865.emea1.cds.t-internal.com.

Reply via email to