2019-09-14 20:46:07,351 INFO [org.apereo.cas.web.CasWebApplication] - <The following profiles are active: standalone,qa>
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>cas.standalone.configurationDirectory=WEB-INF/classes
Can you try out
cas.standalone.configurationDirectory=classpath:/src/resources? Can u try putting it in bootstrap.properties to see if it will works (not good practice, but can test if can work)
Also, i know you want multiple spring profiles, but just for debug sake, if you put your config in src/resources/application.properties, will it works?
As for why others spring project works, but CAS doesn't, I looked into the source code of CAS once, and it seems the properties loading is done separately other than using spring native implementation, hence the different.
see if these info helps you.
Cheer!
- Andy
--