It works locally. Customize: Grails 2.0.3. Debain Linux. I have successfully applied other applications to Cloud Foundry.
Apparently, this thing can happen because the Spring Security plugin was not happy with the resource plugin. Removing the resource plugin does not cure this.
This is the problem:
Class: java.lang.IllegalStateException Message: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
Adding org.springframework.web.context.request.RequestContextListener and its loader to web.xml and importing them into the page also does not help.
There is a lot about this on the Internet, but in my case it only happens in Cloud Foundry.
Cloud Foundry runs on Java 1.6, as does my machine. Logs say the same as the quote above, with stack traces identical to what I found on the Internet.
Any ideas? I am stuck. I spent the best of two days on this.
Thanks.
source share