首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >升级到Grails 2.4: org.springframework.web.filter.GenericFilterBean :ClassNotFoundException

升级到Grails 2.4: org.springframework.web.filter.GenericFilterBean :ClassNotFoundException
EN

Stack Overflow用户
提问于 2015-04-29 22:28:08
回答 1查看 247关注 0票数 0

我正在尝试将一个应用程序从2.3.11升级到Grails 2.4.5。我似乎不能让它工作。我使用Spring Security Core和Spring Security REST插件。尝试运行该应用程序时,抛出此异常,表明Spring Security Core为源代码:

代码语言:javascript
复制
2015-04-29 16:20:24,497 [localhost-startStop-1] ERROR context.GrailsContextLoaderListener  - Error initializing the application: org/springframework/web/filter/GenericFilterBean
Message: org/springframework/web/filter/GenericFilterBean
[...]
|    212 | doCall                         in SpringSecurityCoreGrailsPlugin$_closure2
[...]
Caused by ClassNotFoundException: org.springframework.web.filter.GenericFilterBean

为什么它找不到GenericFilterBean类呢?Spring安全插件表明它与Grails 2.4兼容。

插件包含在BuildConfig.groovy中,如下所示:

代码语言:javascript
复制
compile (":spring-security-rest:1.5.0.RC4")
compile (":spring-security-core:2.0-RC4")
EN

回答 1

Stack Overflow用户

发布于 2015-04-30 07:00:45

你看过参考文档了吗?(Grails 2.4.x:从Grails 2.3升级) http://grails.github.io/grails-doc/2.4.x/guide/upgradingFrom23.html

看起来像是一个依赖错误,请列出在BuildConfig.groovy和applicationContext.xml中使用的所有插件,以便更清楚地了解这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29946672

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档