首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ClassNotFoundException: SimpleKeyGenerator升级到Grails2.4.0.RC1

ClassNotFoundException: SimpleKeyGenerator升级到Grails2.4.0.RC1
EN

Stack Overflow用户
提问于 2014-05-11 03:25:32
回答 1查看 526关注 0票数 2

尝试用2.4.0.RC1启动和运行我们的应用程序,我和我经常遇到这样的错误:

代码语言:javascript
复制
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [grails.plugin.cache.CustomCacheKeyGenerator]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: org.springframework.cache.interceptor.SimpleKeyGenerator
    ... 4 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.springframework.cache.interceptor.SimpleKeyGenerator
    at grails.plugin.cache.CustomCacheKeyGenerator.<init>(CustomCacheKeyGenerator.java:46)
    ... 4 more
Caused by: java.lang.ClassNotFoundException: org.springframework.cache.interceptor.SimpleKeyGenerator
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.forName(Class.java:190)
    at grails.plugin.cache.CustomCacheKeyGenerator.<init>(CustomCacheKeyGenerator.java:43)
    ... 4 more

我已经升级到最新版本的缓存(1.1.6)。它似乎与spring缓存内容有某种版本冲突,但我检查了依赖关系报告,并没有看到任何不寻常的东西被拉进来。

还有其他人遇到这个问题并有解决办法吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-05-12 01:24:07

原来,spring-integration-core 3.0.3版本包含了我错过的一个较早版本的spring上下文。

升级到spring-integration-core版本4.0.0使用与Grails相同的Spring4版本。

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

https://stackoverflow.com/questions/23588571

复制
相关文章

相似问题

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