Spring Security 插件,未找到属性
Posted
技术标签:
【中文标题】Spring Security 插件,未找到属性【英文标题】:Spring Security Plugin, properties not found 【发布时间】:2013-06-16 18:08:54 【问题描述】:我从 Grails 2.2.1 升级到 2.2.2,但是现在运行时,找不到 spring security core 插件的默认属性。您可以从此屏幕截图中看到未找到属性。
关于如何解决这个问题的任何想法?
我按照 Burt 的建议升级到了 2.2.3 版的 grails。但是,现在我得到以下信息:
Configuring Spring Security Core ...
... finished configuring Spring Security Core
| Server running. Browse to http://localhost:8080/movies
| Error 2013-06-25 06:06:11,580 [http-bio-8080-exec-6] ERROR [/movies].[gsp] - Servlet.service() for servlet [gsp] in context with path [/movies] threw 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.
Line | Method
->> 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run . . . in java.lang.Thread
| Error 2013-06-25 06:06:12,885 [http-bio-8080-exec-2] ERROR [/movies].[default] - Servlet.service() for servlet [default] in context with path [/movies] threw 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.
Line | Method
->> 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run . . . in java.lang.Thread
Disconnected from the target VM, address: '127.0.0.1:64820', transport: 'socket'
Process finished with exit code 255
【问题讨论】:
【参考方案1】:您在 Grails 2.2.2 中看到了一个错误,但它已在本周发布的 2.2.3 中得到修复。见http://jira.grails.org/browse/GRAILS-10058
【讨论】:
以上是关于Spring Security 插件,未找到属性的主要内容,如果未能解决你的问题,请参考以下文章
带有 grails 的 Spring Security 核心插件
在 spring security UI grails 插件中添加更多属性
Java 配置 /j_spring_security_check 未找到
Spring Security:未找到 WebSecurityConfigurerAdapter.class