Perfect. Thanks. Could I ask you to file an issue on the overlay project and include details, logs, etc? Just so we don’t forget to get to it.
From: Facundo Bove <[email protected]> Reply: Facundo Bove <[email protected]> Date: October 21, 2016 at 7:14:25 AM To: CAS Community <[email protected]> Cc: [email protected] <[email protected]> Subject: Re: [cas-user] Issues using CAS JSON Service Registry. CAS 5.0.0.RC4-SNAP Yes, sorry. I did not explained that. The same issue happens with RC4.Snapshot and RC3 Gradle Overlay + Json Service Registry. Regards, El jueves, 20 de octubre de 2016, 18:38:46 (UTC-3), Misagh Moayyed escribió: I am confused. You had RC4 initially in your config, yet your report in your last email references RC3. Please clarify. From: Facundo Bove <[email protected]> Reply: Facundo Bove <[email protected]> Date: October 20, 2016 at 10:36:57 PM To: CAS Community <[email protected]> Cc: [email protected] <[email protected]>, [email protected] <[email protected]> Subject: Re: [cas-user] Issues using CAS JSON Service Registry. CAS 5.0.0.RC4-SNAP Hello Misagh, Thanks for answering :) I have isolated the issue. It seems to be related to the gradle overlay. If you add cas-server-support-json-service-registry to a clean cas-gradle-overlay version 5.0.0.RC3 and try to run it, it fails. However if you add cas-server-support-json-service-registry in cas-maven-overlay version 5.0.0.RC3 and run it, it works well. Both overlays are a clean checkout without modifications (except adding the json registry dep) Regards, El jueves, 20 de octubre de 2016, 5:05:39 (UTC-3), Misagh Moayyed escribió: You will need to submit your overlay to the issues project so it can duplicated. This is more likely pilot error. From: Facundo Bove <[email protected]> Reply: Facundo Bove <[email protected]> Date: October 19, 2016 at 4:08:17 PM To: CAS Community <[email protected]> Subject: [cas-user] Issues using CAS JSON Service Registry. CAS 5.0.0.RC4-SNAP Hello, I am having an issue when I add cas-server-support-json-service-registry to my cas-gradle-overlay project. Imho it has something to do with the defaultTemplateResolver. It loads well: 2016-10-17 10:25:09,134 INFO [org.apereo.cas.web.CasWebApplication] - <The following profiles are active: native> 2016-10-17 10:25:21,909 INFO [org.apereo.cas.services.AbstractResourceBasedServiceRegistryDao] - <Watching service registry directory at /tmp/cas/services> 2016-10-17 10:25:22,273 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 3 services from JsonServiceRegistryDao.> But then it crashes: 2016-10-17 10:25:25,709 WARN [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'passwordManagementConfiguration': Unsatisfied dependency expressed through field 'loginFlowDefinitionRegistry'; nested exception isorg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'casWebflowContextConfiguration': Unsatisfied dependency expressed through field 'registeredServiceViewResolver'; nested exception isorg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'casThemesConfiguration': Unsatisfied dependency expressed through field 'thymeleafViewResolver'; nested exception isorg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$Thymeleaf3Configuration$Thymeleaf3ViewResolverConfiguration': Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration$ThymeleafDefaultConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'defaultTemplateResolver' defined in class path resource [org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration$Thymeleaf3Configuration$DefaultTemplateResolverConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver]:Factory method 'defaultTemplateResolver' threw exception; nested exception is java.lang.NullPointerException> 2016-10-17 10:25:25,712 WARN [org.apereo.cas.services.ServiceRegistryConfigWatcher] - <Directory key is no longer valid. Quitting watcher service> Currently targeting: gradle.version=3.0 sourceCompatibility=1.8 targetCompatibility=1.8 cas.version=5.0.0.RC4-SNAPSHOT springboot.version=1.4.1.RELEASE I have added this dependency to build.gradle: runtime("org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}") My cas-gradle-overlay-app/etc/cas/config/application.yml has this setting, among others. cas: serviceRegistry: watcherEnabled: true repeatInterval: 120000 startDelay: 15000 initFromJson: true config: location: classpath:/services This folder: cas-gradle-overlay-app/cas/src/main/resources/services contains this json: { "@class" : "org.apereo.cas.services.RegexRegisteredService", "serviceId" : "testId", "name" : "testJsonFile", "id" : 103935657744185, "evaluationOrder" : 1 } Any help would be appreciate. Extra info: I am using LDAP connector and get logged in correctly. If I am lacking or misunderstanding something please let me know. Regards, -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/34ab9655-7abb-4eae-90d4-299a741e88e2%40apereo.org. For more options, visit https://groups.google.com/a/apereo.org/d/optout. -- Misagh -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/83ddf3d5-935a-4b82-a31a-411f29d93cd0%40apereo.org. For more options, visit https://groups.google.com/a/apereo.org/d/optout. -- Misagh -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/ab8c095b-3023-4661-9953-9ec14764ce24%40apereo.org. For more options, visit https://groups.google.com/a/apereo.org/d/optout. -- Misagh -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.5809bcd0.5535fd61.122ea%40unicon.net. For more options, visit https://groups.google.com/a/apereo.org/d/optout.
