2012-06-13 23 views
4

这适用于本地。设置:Grails 2.0.3。 Debain Linux。我已将其他应用程序成功部署到Cloud Foundry。Cloudfoundry Grails部署问题 - 找不到线程绑定请求

显然这个事情可能会发生,因为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. 

添加org.springframework.web.context.request.RequestContextListener及其加载到web.xml和其导入的页面也没有帮助。

网络上有很多这方面的内容,但在我的情况下,它只发生在Cloud Foundry上。

Cloud Foundry运行在Java 1.6上,就像我的机器一样。日志说与上面的报价相同,堆栈跟踪与我在网上找到的相同。

任何想法?我卡住了。我花了两天的最佳时间。

谢谢。

回答

相关问题