Symptom
Deployment fails in either the "Stopping Backoffice" or "Stopping JavaScript Storefront" step with the Backoffice or storefront logs showing the following nested exception thrown:
{"origin":"catalina","timeMillis":1707874149706,"thread":"localhost-startStop-1","level":"SEVERE","loggerName":"org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/]","threadId":24,"threadPriority":5,"message":"Exception sending context initialized event to listener instance of class [com.<STOREFRONT_NAME>.filters.HybrisStorefrontContextLoaderListener]","contextMap":{"sourceClassName":"org.apache.catalina.core.StandardContext","sourceMethodName":"listenerStart"},"thrown":{"localizedMessage":"Error creating bean with name 'defaultStorefrontTenantDefaultFilterChainList': Cannot resolve reference to bean 'springSecurityFilterChain' while setting bean property 'sourceList' with key [11]; 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.DefaultSecurityFilterChain#1' while setting bean property 'sourceList' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#1': Cannot resolve reference to bean <CUSTOM_BEAN_AUTHENTICATION_FILTER> while setting constructor argument with key [7]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name <CUSTOM_BEAN_AUTHENTICATION_FILTER> defined in ServletContext resource [/WEB-INF/config/spring-filter-config.xml]: Cannot resolve reference to bean '<CUSTOM_B2BAcceleratorAuthenticationManager>' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '<CUSTOM_B2BAcceleratorAuthenticationManager>' available","message":"Error creating bean with name 'defaultStorefrontTenantDefaultFilterChainList': Cannot resolve reference to bean 'springSecurityFilterChain' while setting bean property 'sourceList' with key [11]; ... }
This may occur even if the same build is deployed successfully to a different environment.
Read more...
Environment
SAP Commerce Cloud
Product
Keywords
deployment failed, B2BAuthenticationManager, B2BAuthenticationManager bean not found , KBA , CEC-SCC-CLA-DEP , Deployments , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview