ClassNotFoundException:SimpleKeyGenerator升级到Grails 2.4.0.RC1

时间:2014-05-11 03:25:32

标签: grails

尝试使用2.4.0.RC1启动并运行我们的应用程序,并且我一直遇到此错误:

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)。似乎某种版本与弹簧缓存的东西冲突,但我检查了依赖性报告,并没有看到任何异常被拉入。

其他人遇到此问题并有解决方案吗?

1 个答案:

答案 0 :(得分:2)

事实证明spring-integration-core版本3.0.3包含了我错过的旧版本的spring-context。

升级到spring-integration-core版本4.0.0使用与Grails相同版本的Spring 4.

相关问题