You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by "ruthst00 (via GitHub)" <gi...@apache.org> on 2026/10/12 17:11:27 UTC

Re: [I] GrailsDispatcherServlet creates a second GrailsWebRequest when a RequestContextFilter runs after GrailsWebRequestFilter, so render(template:) falls through to "Could not resolve view" [grails-core]

ruthst00 commented on issue #15819:
URL: https://github.com/apache/grails-core/issues/15819#issuecomment-6129002384

   @ivaylodimov-taulia, thanks very much for the guidance. Registering a `RequestContextFilter` that runs after `GrailsWebRequestFilter` allowed me to reproduce the problem in Grails 8:
   ``` bash
   jakarta.servlet.ServletException: Could not resolve view with name 'results' in servlet with name 'dispatcherServletRegistration'
           at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1280) ~[spring-webmvc-7.0.9.jar:7.0.9]
           at org.grails.web.servlet.mvc.GrailsDispatcherServlet.render(GrailsDispatcherServlet.groovy:139) ~[grails-web-mvc-8.0.0.jar:8.0.0]
           at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1042) ~[spring-webmvc-7.0.9.jar:7.0.9]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@grails.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org