Replies: 2 comments
-
This check is causing issues in environments with reverse proxies. It will need to be changed or removed. See #926 |
Beta Was this translation helpful? Give feedback.
0 replies
-
This should have been fixed now. Could you please test with See this explanation on how to use Thymeleaf's snapshot versions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Since I switched to 3.1.0.RELEASE I got this error:
java.lang.IllegalArgumentException: Cannot build an application for a request which servlet context does not match with the application that it is being built for. at org.thymeleaf.util.Validate.isTrue(Validate.java:79) at org.thymeleaf.web.servlet.JavaxServletWebApplication.buildExchange(JavaxServletWebApplication.java:64) at org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:204) at org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:192) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1405) at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1149) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1088) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) at javax.servlet.http.HttpServlet.service(HttpServlet.java:670) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) at javax.servlet.http.HttpServlet.service(HttpServlet.java:779) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) at de.codecentric.boot.admin.server.ui.web.servlet.HomepageForwardingFilter.doFilter(HomepageForwardingFilter.java:78)
I'm using springboot-admin and there thymeleaf is used for some pages.
When I run my app locally (even with changed server.servlet.context-path=/dashboard-service) its working fine.
But when I run the app inside aws beanstalk (exposed via a reverse-proxy/apache) ... I got this error.
No glue why.
Maybe it would be good to see in the exception the not-matching context-path-strings?
Or would it be possible to disable this check?
Kind regards
Andreas
Beta Was this translation helpful? Give feedback.
All reactions