Hello, 

CAS 5.3.3 overlay on tomcat8.  I wish to display an error message on CAS 
login that says you have one more attempt or two more attempts to login, 
before get locked out.

I defined two new exception classes below in cas.properties.

cas.authn.exceptions.exceptions=org.apereo.cas.authentication.exceptions.OneMoreAttempLoginException,org.apereo.cas.authentication.exceptions.TwoMoreAttempLoginException

In message.properties, I provided the message.  When CAS starts up, I got 
this error. 

What am I missing?  Is this not the correct way to define a list of 
exception classes?

Thx!

Caused by: 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); neste
d exception is org.springframework.validation.BindException: 
org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult:
 
1 errors
Field error in object 'cas' on field 'authn.exceptions.exceptions': 
rejected value 
[org.apereo.cas.authentication.exceptions.OneMoreAttempLoginException,org.ape
reo.cas.authentication.exceptions.TwoMoreAttempLoginException]; codes 
[typeMismatch.cas.authn.exceptions.exceptions,typeMismatch.authn.exceptions.exceptions,typ
eMismatch.exceptions,typeMismatch.java.util.List,typeMismatch]; arguments 
[org.springframework.context.support.DefaultMessageSourceResolvable: codes 
[cas.authn.
exceptions.exceptions,authn.exceptions.exceptions]; arguments []; default 
message [authn.exceptions.exceptions]]; default message [Failed to convert 
property va
lue of type 'java.lang.String' to required type 'java.util.List' for 
property 'authn.exceptions.exceptions'; nested exception is 
java.lang.IllegalArgumentExcept
ion: Could not find class 
[org.apereo.cas.authentication.exceptions.OneMoreAttempLoginException]]
        at 
org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindin
gPostProcessor.java:336)
        at 
org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindin
gPostProcessor.java:292)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanF
actory.java:409)

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/40887506-0820-4bef-857b-4d8bc4b0290e%40apereo.org.

Reply via email to