BeanCreationException in spring 6 and beans created without proxy

Has anyone seen this exception and may have some clue how to fix it?
When I turn on spring bean debug logging, there are thousands of logged exceptions like below:

2024-06-06T21:17:46.221Z [main] DEBUG [] DefaultListableBeanFactory : Creating shared instance of singleton bean ‘…’
2024-06-06T21:17:46.226Z [main] DEBUG [] DefaultListableBeanFactory : Creating shared instance of singleton bean ‘org.springframework.security.authenticationManager’
2024-06-06T21:17:46.227Z [main] DEBUG [] DefaultListableBeanFactory : Bean creation exception on singleton FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.security.config.http.HttpSecurityBeanDefinitionParser$ChildAuthenticationManagerFactoryBean#1’: Cannot resolve reference to bean ‘authenticationManager’ while setting constructor argument

Since that exception is only logged at the debug level, is it considered non-fatal? (the beans did get created at that time).
However, when such exception occurs, the created beans have no association with proxy! And annotations like @Transactional on bean methods are not taking effect, so we have transaction related failures.

If I create a simple bean without any other beans referencing it, the bean is created with correct proxy:

If the bean is reference by our existing beans through autowire (@Autowired), the bean created is a concrete class instance without proxy:

I don’t have a simple code example to show the issue, but here are some info of the environment:
tomcat.version 10.1.20

spring.version 6.1.5

spring-security.version 6.2.3

hibernate.version 6.4.4.Final

Our beans are annotated with @Service or @Component.

The configuration related to “authenticationManager” bean and “authentication-manager-ref” defined in applicationContext-security.xml is like this:

     <beans:beans xmlns="http://www.springframework.org/schema/security"
             xmlns:beans="http://www.springframework.org/schema/beans"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xmlns:security="http://www.springframework.org/schema/security"
             xsi:schemaLocation="http://www.springframework.org/schema/beans
                      http://www.springframework.org/schema/beans/spring-beans.xsd
                      http://www.springframework.org/schema/security
                      http://www.springframework.org/schema/security/spring-security-6.2.xsd">

    <security:authentication-manager alias="authenticationManager">
        <security:authentication-provider ref="myAuthenticationProvider"/>
    </security:authentication-manager>

    <http create-session="stateless" use-expressions="true" entry-point-ref="myEntryPoint" authentication-manager-ref="authenticationManager">
        <intercept-url pattern="/app/**" ... />
        ...
    </http>
    <beans:bean id="myAuthenticationProvider" class="MyAuthenticationProvider"/>

Tried different way creating the beans. But it still looks like this exception is related to beans created without proxy association.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật