I'm trying to spin-up a configuration server that uses AWS SSM as its
configuration source. I have used cas-initialzr to generate the overlay
and add a dependency to support-configuration-cloud-aws-ssm.
However, the server fails to start with a BeanCreationException in all
versions past 6.3.7.4. The BeanCreationException is slightly different on
each version but they all relate to being unable to initialize the
"restAuthenticationService" bean in CasCoreRestConfiguration.
In 6.4.0, the error is:
<Exception encountered during context initialization - cancelling refresh
attempt: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'restAuthenticationService' defined in class path
resource [org/apereo/cas/rest/config/CasCoreRestConfiguration.class]: Bean
instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.apereo.cas.rest.authentication.RestAuthenticationService]: Factory
method 'restAuthenticationService' threw exception; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No
qualifying bean of type
'org.apereo.cas.authentication.AuthenticationSystemSupport' available:
expected at least 1 bean which qualifies as autowire candidate. Dependency
annotations:
{@org.springframework.beans.factory.annotation.Autowired(required=true),
@org.springframework.beans.factory.annotation.Qualifier(value="defaultAuthenticationSystemSupport")}>
In 6.5.3 the error complains about a missing
"defaultMultifactorTriggerSelectionStrategy":
2022-06-17 15:01:56,396 WARN
[org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext]
- <Exception encountered during context initialization - cancelling refresh
attempt: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'restAuthenticationService' defined in class
path resource
[org/apereo/cas/rest/config/CasCoreRestConfiguration$CasCoreRestAuthenticationConfiguration.class]:
Unsatisfied dependency expressed through method 'restAuthenticationService'
parameter 1; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No
qualifying bean of type
'org.apereo.cas.authentication.MultifactorAuthenticationTriggerSelectionStrategy'
available: expected at least 1 bean which qualifies as autowire candidate.
Dependency annotations:
{@org.springframework.beans.factory.annotation.Qualifier(value="defaultMultifactorTriggerSelectionStrategy")}>
The same error is raised if dependencies on AWS Secrets Manager or DynamoDb
are added, so it seems it's something with enabling the AWS modules that
adds some unexpected dependencies that can't be satisfied at runtime.
I'd appreciate any hints anyone can provide as to how I can resolve this.
--
- 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/fbf0ec09-aac0-4b9e-b6ce-9352224a6ec8n%40apereo.org.