Hi,
Continued with attribute problems.
*cas.properties*
cas.authn.attributeRepository.jdbc[0].sql = SELECT * FROM user_attributes
WHERE {$
cas.authn.attributeRepository.jdbc[0].healthQuery = SELECT 1
cas.authn.attributeRepository.jdbc[0].driverClass = com.mysql.jdbc.Driver
cas.authn.attributeRepository.jdbc[0].url =
jdbc:mysql://localhost:3306/cas?useUn$
cas.authn.attributeRepository.jdbc[0].user = root
cas.authn.attributeRepository.jdbc[0].password = Taraibak24
cas.authn.attributeRepository.jdbc[0].dialect =
org.hibernate.dialect.MySQLDialect
cas.authn.attributeRepository.jdbc[0].singleRow = false
cas.authn.attributeRepository.jdbc[0].username = email
cas.authn.attributeRepository.jdbc[0].columnMappings.key = value
cas.authn.attributeRepository.attributes.firstname = firstname
cas.authn.attributeRepository.defaultAttributesToRelease = firstname
*Error Log:*
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
'authn.attributeRepository.attributes[firstname]' of bean class
[org.apereo.cas.configuration.model.core.authentication.AuthenticationProperties]:
Cannot access indexed value in property referenced in indexed property path
'attributes[firstname]'; nested exception is
org.springframework.beans.NotReadablePropertyException: Invalid property
'authn.attributeRepository.attributes[firstname]' of bean class
[org.apereo.cas.configuration.model.core.authentication.AuthenticationProperties]:
Bean property 'authn.attributeRepository.attributes[firstname]' is not
readable or has an invalid getter method: Does the return type of the
getter match the parameter type of the setter?>
2018-10-12 04:07:36,527 ERROR [org.springframework.boot.SpringApplication]
- <Application startup failed>
I followed the guide from
https://apereo.github.io/2017/02/22/cas51-dbauthn-tutorial/ but it didn't
work. Error as above. Please give me solution. Thank you.
--
- 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/d3b5c886-2d4e-44b2-9d12-4932e64602ee%40apereo.org.