Issue
When upgrading to Deploy 10.1.x and later, with LDAP configured, the upgrade might fail and you might see the following error in the log:
2022-02-16 09:21:40.793 [main] {} WARN o.eclipse.jetty.webapp.WebAppContext - Failed startup of
context o.s.b.w.e.j.JettyEmbeddedWebAppContext@321f25ed{application,/,file:///opt/xebialabs/
xl-deploy-server/,UNAVAILABLE}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring
SecurityFilterChain' defined in class path resource [org/springframework/security/config/
annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory
method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed
to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw
exception; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException:
No qualifying bean of type 'org.springframework.security.authentication.AuthenticationEvent
Publisher' available: expected single matching bean but found 2: org.springframework.security.
authentication.DefaultAuthenticationEventPublisher#0,org.springframework.security.authentication.
DefaultAuthenticationEventPublisher#1
Cause
There was a change to the way LDAP should be configured starting with Deploy 10.1.x, hence the error above.
Workaround/Resolution Action
To overcome the error, follow the instructions available at https://docs.xebialabs.com/xl-deploy/10.1.x/releasemanual.html#digitalai-deploy-1010-new-features under the LDAP integration section.
Comments
Please sign in to leave a comment.