【发布时间】:2013-03-23 00:00:18
【问题描述】:
我正在使用 Spring 框架和 Google App Engine 构建 Web 应用程序。在开发服务器中它可以工作,但是在部署到 Google App Engine 服务器时我遇到了这个错误
Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer
和
Initialization of bean failed; nested exception is java.lang.IncompatibleClassChangeError: class net.sf.cglib.core.DebuggingClassWriter has interface org.objectweb.asm.ClassVisitor as super class
第一个错误显示我似乎错过了 cglib.jar 中的 net.sf.cglib.proxy.Enhancer 但是当我检查它已经存在时。第二个日志看不懂
我在类路径中使用了几个 jars 文件:
asm-4.0
asm-util-4.0
cglib-3.0
app engine sdk 1.7.6
spring framework 3.2.0
什么是问题?我该如何解决?
提前致谢
【问题讨论】:
-
请检查这是否有帮助:stackoverflow.com/questions/9366403/…
标签: java google-app-engine spring-mvc