【问题标题】:Spring Security Plugin, properties not foundSpring Security 插件,未找到属性
【发布时间】: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

【问题讨论】:

    标签: grails plugins properties spring-security


    【解决方案1】:

    您在 Grails 2.2.2 中看到了一个错误,但它已在本周发布的 2.2.3 中得到修复。见http://jira.grails.org/browse/GRAILS-10058

    【讨论】:

      猜你喜欢
      • 2015-02-12
      • 2018-01-17
      • 2015-06-08
      • 2018-12-06
      • 2015-02-12
      • 2020-09-22
      • 2013-10-08
      • 2021-06-26
      • 2013-09-26
      相关资源
      最近更新 更多