Issue
2022-02-16 13:59:56.261 [main] {} WARN o.eclipse.jetty.webapp.WebAppContext - Failed startup of
context o.s.b.w.e.j.JettyEmbeddedWebAppContext@793df843{application,/,file:///opt/xebialabs/xl-
release/,UNAVAILABLE} org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.spring
framework.security.filterChainProxyFilterRegistrationBean': Cannot resolve reference to bean 'org.
springframework.security.filterChainProxy' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.
springframework.security.filterChainProxy': Cannot resolve reference to bean 'org.springframework.
security.filterChains' while setting constructor argument; nested exception is org.springframework.
beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.
filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurity
FilterChain#15' while setting bean property 'sourceList' with key [15]; nested exception is org.
springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.spring
framework.security.web.DefaultSecurityFilterChain#15': Cannot resolve reference to bean 'pat
AuthenticationFilter' while setting constructor argument with key [4]; nested exception is org.
springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'patAuthenticationFilter'
available at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
(BeanDefinitionValueResolver.java:342) ... Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'org.springframework.security.web.DefaultSecurityFilterChain#15': Cannot resolve reference to bean
'patAuthenticationFilter' while setting constructor argument with key [4]; nested exception is org.
springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'patAuthenticationFilter'
available ... *************************** APPLICATION FAILED TO START *************************** Description: A component required a bean named 'patAuthenticationFilter' that could not be found Action: Consider defining a bean named 'patAuthenticationFilter' in your configuration.
Affected Products & Versions
Release 10.3.5, 10.3.7 (Mostly all 10.x versions)
Cause
patAuthenticationToken was not present in 10.3.5 or 10.3.7. For some reason, the application was looking for a bean named patAuthenticationFilter.
The customer was using the 22.x version of the following plugins:
- xlr-auth-default-plugin-22.0.0.jar
- xlr-auth-oidc-plugin-22.0.0.jar
Workaround/Resolution Action
Remove the 22.x version of the plugins and install the plugins corresponding to the application version.
Considerations
How to check whether any references of patAuthenticationFilter is present in the support package:
/mnt/d/Tickets/xxxx/xl-release-10.3.5 $ grep -iRl "patAuthentication" .
./log/wrapper.log
./log/xl-release.log
The logs files only contained the errors related to patAuthentication.
To check the jar files:
$ find . -iname "*.jar" | xargs -I{} sh -c 'echo filename = "{}"; zipgrep "patAuthentication" {}'
filename = ./plugins/xlr-official/xlr-auth-default-plugin-22.0.0.jarspring/xlrelease-default-
authentication.xml: <security:custom-filter before="BASIC_AUTH_FILTER" ref="patAuthentication
Filter"/> filename = ./plugins/xlr-official/xlr-auth-oidc-plugin-22.0.0.jar spring/xlrelease-
oidc-authentication.xml: <security:custom-filter before="BASIC_AUTH_FILTER" ref="patAuthentication
Filter"/>
Comments
Please sign in to leave a comment.