We receive “Invalid property 'log[dir]'” error during the initialization of CAS 5.3.9 even though we are basically using the default cas.properties configuration. Does anyone know what would be generating this error? We are using the CAS overlay build process.
-Gary
The full error message is as follows:
2019-04-12 14:09:54,690 ERROR [org.springframework.boot.SpringApplication] - <Application startup failed>
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.beans.factory.BeanCreationException: Error creating bean with name 'cas-org.apereo.cas.configuration.CasConfigurationProperties': Could not bind properties to CasConfigurationProperties (prefix=cas, ignoreInvalidFields=false, ignoreUnknownFields=false, ignoreNestedProperties=false); nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'log[dir]' of bean class [org.apereo.cas.configuration.CasConfigurationProperties]: Cannot access indexed value in property referenced in indexed property path 'log[dir]'; nested exception is org.springframework.beans.NotReadablePropertyException: Invalid property 'log[dir]' of bean class [org.apereo.cas.configuration.CasConfigurationProperties]: Bean property 'log[dir]' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
Thank you for the response Mike.
The actual problem however was due to an extraneous property defined within the Catalina_Opts start up script:
cas.log.dir=$LOGPATH”
CAS initialized after it was removed
-Gary
--
- 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
cas-user+u...@apereo.org.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/d01b74f3-f93d-4e09-8e0f-4363803748d7%40apereo.org.