You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We faced an error when migrating spring-boot-starter-thymeleaf with version 3.3.4, that did not occur in the previous 3.3.3 version. When loading a template that uses the layout decorate functionality, a Circular loading of installed providers detected occurs, when the application runs inside an our docker container.
We are using the following versions:
Version of Thymeleaf: spring-boot-starter-thymeleaf:3.3.4
Environment: Spring Boot 3.3.4
Docker base image: public.ecr.aws/docker/library/amazoncorretto:21-alpine-jdk (we just copy the JAR into the docker container and set an entry point)
<!DOCTYPE html>
<html
xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
>
<head>
<title layout:title-pattern="$CONTENT_TITLE">Sample title</title>
</head>
<body>
Some content here
</body>
</html>
The error occurs when starting the application running in the docker based on alpine
Workaround:
We have found that when we are pinning the groovy version that is delivered within the thymeleaf library to version 4.0.22 instead of using version 4.0.23 that was delivered with the new 3.3.4 version of thymeleaf spring boot starter, the error does not occur anymore. That works for the moment, of course for further releases this could raise other isssues.
We would be very thankful, if you could help us to fix the issue.
The text was updated successfully, but these errors were encountered:
LennardWolf2023
changed the title
Error in Startup when using spring-boot-starter-thymeleaf with version 3.3.4 in docker
Error with circular loading of installed providers when using spring-boot-starter-thymeleaf (version 3.3.4) in docker
Nov 6, 2024
Hello dear thymeleaf community,
We faced an error when migrating spring-boot-starter-thymeleaf with version 3.3.4, that did not occur in the previous 3.3.3 version. When loading a template that uses the layout decorate functionality, a
Circular loading of installed providers detected
occurs, when the application runs inside an our docker container.We are using the following versions:
The stack trace looks like the following:
Stacktrace:
Reproduce:
The sampleFullBleed looks like the following:
Workaround:
We have found that when we are pinning the groovy version that is delivered within the thymeleaf library to version 4.0.22 instead of using version 4.0.23 that was delivered with the new 3.3.4 version of thymeleaf spring boot starter, the error does not occur anymore. That works for the moment, of course for further releases this could raise other isssues.
We would be very thankful, if you could help us to fix the issue.
The text was updated successfully, but these errors were encountered: