I am building the management webapp with the current Maven WAR overlay, and
<cas.version> set to either 5.3.0-RC1 or 5.3.0-RC2-SNAPSHOT. In both cases,
all of a sudden the webapp is unhappy with my *management.properties* file
that has been working just fine with 5.1.x and 5.2.x. Specifically, I get:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'casCoreWebConfiguration': 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
'mgmt[adminRoles][0]' of bean class
[org.apereo.cas.configuration.CasConfigurationProperties]: Cannot access
indexed value in property referenced in indexed property path
'mgmt[adminRoles][0]'; nested exception is
org.springframework.beans.NotReadablePropertyException: Invalid property
'mgmt[adminRoles][0]' of bean class
[org.apereo.cas.configuration.CasConfigurationProperties]: Bean property
'mgmt[adminRoles][0]' is not readable or has an invalid getter method: Does
the return type of the getter match the parameter type of the setter?

and, if I delete "cas.mgmt.adminRoles[0]: ROLE_ADMIN" from the file, I get
basically the same error on the next property:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'casCoreWebConfiguration': 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
'mgmt[userPropertiesFile]' of bean class
[org.apereo.cas.configuration.CasConfigurationProperties]: Cannot access
indexed value in property referenced in indexed property path
'mgmt[userPropertiesFile]'; nested exception is
org.springframework.beans.NotReadablePropertyException: Invalid property
'mgmt[userPropertiesFile]' of bean class
[org.apereo.cas.configuration.CasConfigurationProperties]: Bean property
'mgmt[userPropertiesFile]' is not readable or has an invalid getter method:
Does the return type of the getter match the parameter type of the setter?

It occurred to me that maybe the property name prefix ("cas.mgmt") might
have changed when the webapp was spun off into its own GitHub repository,
but unfortunately, when I try to check the documentation on this:

https://apereo.github.io/cas-management/development/installation/Configuration-Properties.html

it results in a 404 error (as does Configuration-Management.html).

Is this a bug, or am I doing something wrong?

Thanks,
--Dave




--

DAVID A. CURRY, CISSP
*DIRECTOR OF INFORMATION SECURITY*
INFORMATION TECHNOLOGY

71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728 • [email protected]

[image: The New School]

-- 
- 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/CA%2Bd9XAMrHXz6FbjofrZj5G9Tk2rGGikP%2B15Q_v-ZJ_T8_%2B9Egg%40mail.gmail.com.

Reply via email to