Hi I am running cas-overlay-template version 6.0.0 on linux and have managed to build and run a docker cas with config in /etc/cas/config using standalone and dev spring profiles.
I've read the pages at https://apereo.github.io/cas/6.0.x/configuration/Configuration-Server-Management.html and https://apereo.github.io/cas/6.0.x/configuration/Configuration-Management.html#overview Given all the flexibility that seems available I'm confused hat what I'm now trying to do does not seem to work. I'm trying to provide all config files inside the war and have moved application-standalone.properties and application-dev.properties files to inside src/main/resources in my overlay project. I also moved the cas.properties file that was in /etc/cas/config into src/main/resources When I now run and pass in SPRING_PROFILES_ACTIVE=standalone,qa, I can see 2019-09-14 20:46:07,351 INFO [org.apereo.cas.web.CasWebApplication] - <The following profiles are active: standalone,qa> but then I see an error 2019-09-14 20:47:02,591 WARN [org.apereo.cas.web.CasWebApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casBeanValidationPostProcessor' defined in class path resource [org/apereo/cas/config/CasCoreUtilConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' : Unsatisfied dependency expressed through method 'setConfigurers' parameter 0; nested exception is org.springframework.beans.factory. UnsatisfiedDependencyException: Error creating bean with name 'casCoreTicketsConfiguration': Unsatisfied dependency expressed through field 'casProperties'; nested exception is org.springframework.boot.context. properties.ConfigurationPropertiesBindException: Error creating bean with name 'cas-org.apereo.cas.configuration.CasConfigurationProperties': Could not bind properties to 'CasConfigurationProperties' : prefix=cas, ignoreInvalidFields=false, ignoreUnknownFields=false; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'cas' to org.apereo.cas.configuration. CasConfigurationProperties> This placement of property files is something I've done in many other Spring Boot apps so am surprised it does not work. I also tried adding cas.standalone.configurationDirectory=WEB-INF/classes but get the same error. Apologies for not being able to pick up the necessary info from the 2 pages above but it there something I am missing? What do I need to do to ship CAS.war (not docker) with my profile property files inside the war? Many thanks for any help. n -- - 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/a14de00f-fa8a-4a66-801b-09f9574e2cf6%40apereo.org.
