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.>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>gradle.version=3.0
sourceCompatibility=1.8
targetCompatibility=1.8
cas.version=5.0.0.RC4-SNAPSHOT
springboot.version=1.4.1.RELEASE
runtime("org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}")cas:
serviceRegistry:
watcherEnabled: true
repeatInterval: 120000
startDelay: 15000
initFromJson: true
config:
location: classpath:/services{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "testId",
"name" : "testJsonFile",
"id" : 103935657744185,
"evaluationOrder" : 1
}You will need to submit your overlay to the issues project so it can duplicated. This is more likely pilot error.
--
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 post to this group, send email to cas-...@apereo.org.
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.
You will need to submit your overlay to the issues project so it can duplicated. This is more likely pilot error.
I am confused. You had RC4 initially in your config, yet your report in your last email references RC3. Please clarify.
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.
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.
I am confused. You had RC4 initially in your config, yet your report in your last email references RC3. Please clarify.
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.
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 <fj...@gmail.com>
Reply: Facundo Bove <fj...@gmail.com>
Date: October 20, 2016 at 10:36:57 PM
To: CAS Community <cas...@apereo.org>
Cc: fjb...@gmail.com <fj...@gmail.com>, mmoa...@unicon.net <mmo...@unicon.net>
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.
compile("org.apereo.cas:cas-server-support-pac4j-webflow:${project.'cas.version'}")
cas.server.name: https://mymachine.mycompanycom:8445
cas.server.prefix: https://mymachine.mycompany.com:8445/cas
cas.adminPagesSecurity.ip=127\.0\.0\.1
logging.config: file:/etc/cas/config/log4j2.xml
cas.authn.accept.users=
cas.authn.pac4j.typedIdUsed=true
cas.logout.followServiceRedirects=true
server.port=8445
←[36m
__ ____ _ ____ __
/ / / ___| / \ / ___| \ \
| | | | / _ \ \___ \ | |
| | | |___ / ___ \ ___) | | |
| | \____|/_/ \_\|____/ | |
\_\ /_/
CAS Version: 5.0.0.RC4-SNAPSHOT
Build Date/Time: 2016-10-21T08:39:25.088Z
System Temp Directory: C:\Users\Yauheni_Sidarenka\AppData\Local\Temp\
Java Home: C:\Program Files\Java\jdk1.8.0_60\jre
Java Vendor: Oracle Corporation
Java Version: 1.8.0_60
JCE Installed: no
OS Architecture: amd64
OS Name: Windows 7
OS Version: 6.1
←[0m
2016-10-21 11:43:03,788 INFO [org.apereo.cas.web.CasWebApplication] - <The following profiles are active: native>
2016-10-21 11:43:09,311 WARN [org.apereo.cas.services.InMemoryServiceRegistryDaoImpl] - <Runtime memory is used as the persistence storage for retrieving and persisting service definitions. Changes that are made to service definitions during runtime WILL be LOST upon container restarts.>
2016-10-21 11:43:09,342 INFO [org.apereo.cas.services.DefaultServicesManagerImpl] - <Loaded 0 services from InMemoryServiceRegistryDaoImpl.>
2016-10-21 11:43:09,545 WARN [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletContainer' defined in class path resource [org/apereo/cas/config/CasEmbeddedContainerConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Unsatisfied dependency expressed through field 'errorViewResolvers'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'pac4jWebflowConfiguration': Unsatisfied dependency expressed through field 'loginFlowDefinitionRegistry'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'casWebflowContextConfiguration': Unsatisfied dependency expressed through field 'registeredServiceViewResolver'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'casThemesConfiguration': Unsatisfied dependency expressed through field 'thymeleafViewResolver'; nested exception is org.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>
Copying configuration to /etc/cas/config
:cas:compileJava UP-TO-DATE
:cas:processResources UP-TO-DATE
:cas:classes UP-TO-DATE
:cas:findMainClass
:cas:bootRun FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':cas:bootRun'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_60\bin\java.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.902 secssetCheckExistence(boolean) in class SpringResourceTemplateResolver, which does not have this method in version 2.1.5, but has one in version 3.0.1 as inherited from AbstractTemplateResolver
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.