'Failed to bind properties' message means that you have a property defined like 
'cas.someproperty=...', but CAS does not know what 'someproperty' is. Perhaps 
it might be 'some.property' or a typo.

Ray

On Sat, 2019-09-14 at 14:01 -0700, n99 wrote:
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

--

Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | [email protected]<mailto:[email protected]>

I respectfully acknowledge that my place of work is located within the 
ancestral, traditional and unceded territory of the Songhees, Esquimalt and 
WSÁNEĆ Nations.

-- 
- 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/40228472c5ad5193a1f893ddcc56c4d125c479df.camel%40uvic.ca.

Reply via email to