这在本地工作.设置:Grails 2.0.3.Debain Linux.我已成功将其他应用程序部署到Cloud Foundry.
显然,由于Spring Security Plugin对资源插件不满意,可能会发生这种情况.删除资源插件并不能解决这个问题.
这就是问题:
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.
Run Code Online (Sandbox Code Playgroud)
将org.springframework.web.context.request.RequestContextListener及其加载器添加到web.xml并将它们导入页面也无济于事.
网上有很多这方面,但就我而言,它只发生在Cloud Foundry上.
Cloud Foundry在Java 1.6上运行,就像我的机器一样.日志与上面的引用相同,堆栈跟踪与我在网络上找到的相同.
有任何想法吗?我被卡住了.我花了两天时间在这上面.
谢谢.