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
Error "Cannot build an application for a request which servlet context does not match with the application that it is being built for." #990
Comments
The root context problem can be fixed with the following change in JakartaServletWebApplication:
It's the classical "context root identity" issue, i.e. is the context root empty or a slash, such as https://example.com/ vs. https://example.com. I don't know why this validation is necessary in the first place, but just ignoring the differentiation between "" and "/" as the context root makes sense to me. I don't think I can configure that accordingly. I'm deploying the application into Open Liberty version 23.0.0.8. |
This can be reproduced now in the fork at https://github.com/berndgoetz/spring-petclinic. See the readme there |
Any news on this? |
Hi, following the issue as we see the same situation with openliberty 22.0.0.8, deployed in root context path |
Hello Thymeleaf Team,
I'm running Spring Boot 3.2.1, and the spring-boot-starter-thymeleaf. This pulls Thymeleaf version 3.1.2.RELEASE.
When running the application I get the following error at first access of the thymeleaf template for the home path ("/" or ""):
I found #926 and #937 and they assume it being fixed with 3.1.x. Are we looking at a regression issue here? Thanks.
The text was updated successfully, but these errors were encountered: