gpt4 book ai didi

grails - 具有 Spring 安全性的Grails应用在WAS7上导致500个过滤器错误

转载 作者:行者123 更新时间:2023-12-02 15:37:00 24 4
gpt4 key购买 nike

我已经使用相同的WebSphere配置部署了该应用程序的较早版本,但是在grails 1.3.7上却没有资源或webxml插件。

我能够部署到Tomcat,但是当我向WebSphere部署相同的 war 时,尝试访问该应用程序时出现以下错误:

Error 500: 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.
Exception 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.
Caused by: Filter [springSecurityFilterChain]: filter is unavailable.

Grails版本:2.0.0
Groovy版本:1.8.4
JVM版本:1.6.0_29

安装插件
核心-2.0.0
资源-1.1.6
webxml-1.4.1
Servlet-2.0.0
springSecurityCore-1.2.7
springSecurityLdap-1.0.5

我已将web容器上的invokeFiltersCompatibility定制属性设置为true。

最佳答案

如果在web.xml中使用属性:metadata-complete =“true”,则Websphere将不理会web.xml。为了编辑web.xml,您必须使用grails“install-templates”命令来获取web.xml文件的工作副本。

另请参阅:
http://www.experts-exchange.com/Software/Server_Software/Application_Servers/Java/IBM_Websphere/Q_26625087.html

关于grails - 具有 Spring 安全性的Grails应用在WAS7上导致500个过滤器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8761782/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com