【问题标题】:Grails app with spring-security causing 500 filter error on WAS7具有 spring-security 的 Grails 应用程序在 WAS7 上导致 500 过滤器错误
【发布时间】:2012-01-06 17:22:11
【问题描述】:

我使用相同的 WebSphere 配置部署了此应用程序的早期版本,但我使用的是 grails 1.3.7,没有资源或 webxml 插件。

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

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 小服务程序 - 2.0.0 springSecurityCore - 1.2.7 springSecurityLdap - 1.0.5

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

【问题讨论】:

    标签: grails spring-security websphere-7


    【解决方案1】:

    如果您在 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

    【讨论】:

      猜你喜欢
      • 2015-11-11
      • 2012-03-13
      • 1970-01-01
      • 2016-08-16
      • 1970-01-01
      • 1970-01-01
      • 2016-01-30
      • 2015-02-16
      • 1970-01-01
      相关资源
      最近更新 更多