Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Boot 3.2.1 Native Image build broken, when combining web + security #38910

Closed
goafabric opened this issue Dec 22, 2023 · 5 comments
Closed
Labels
for: external-project For an external project and not something we can fix status: duplicate A duplicate of another issue

Comments

@goafabric
Copy link

goafabric commented Dec 22, 2023

Latest Spring Boot 3.2.1 seemingly breaks native image compilation,
when combining starter-web + starter-security.

When bootstrapping the native application we get:

'The bean 'mvcHandlerMappingIntrospectorRequestTransformer' could not be registered. A bean with that name has already been defined and overriding is disabled.'

Pleaese see an example attached, which generated by start.spring.io and selecting

  • web + security + native image support

Error can be reproduced by ./gradlew clean nativeCompile or by Paketo build.
The

As a sidenode:
Boot 3.2.1 also brings in a hibernate version with breaking interfaces changes for
CurrentTenantIdentifierResolver, MultiTenantConnectionProvider
which now need to be defined with Generic Types

demo-2.zip

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 22, 2023
@bclozel
Copy link
Member

bclozel commented Dec 22, 2023

Thanks for reaching out. This has been reported already in Spring Security.

spring-projects/spring-security#14362

@bclozel bclozel added status: duplicate A duplicate of another issue for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 22, 2023
@bclozel bclozel closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2023
@waileong
Copy link

Please consider pinning this issue on top, as this is a blocker for the Native Image project to upgrade to Spring Boot 3.2.1.

@hoangphuc2k
Copy link

I upgrade to spring boot 3.2.2 but the issue is still there

@wilkinsona
Copy link
Member

@hoangphuc2k That's to be expected. Please see the underlying Spring Security issue for details of when the fix will be released.

@hoangphuc2k
Copy link

@wilkinsona Sorry, My mistake I read the post but I mistakenly changed from February to January

@wilkinsona wilkinsona unpinned this issue Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

6 participants