java.lang.NoClassDefFoundError:部署到Google App Engine时无法初始化类net.sf.cglib.proxy.Enhancer

java.lang.NoClassDefFoundError:部署到Google App Engine时无法初始化类net.sf.cglib.proxy.Enhancer,java,google-app-engine,spring-mvc,Java,Google App Engine,Spring Mvc,我正在使用Spring框架和Google应用程序引擎构建web应用程序。在dev服务器中,它可以工作,但在部署到googleappengine服务器时,我遇到了这个错误 Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer 及 第一个错误显示我似乎错过了cglib.jar中的

我正在使用Spring框架和Google应用程序引擎构建web应用程序。在dev服务器中,它可以工作,但在部署到googleappengine服务器时,我遇到了这个错误

Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer

第一个错误显示我似乎错过了cglib.jar中的net.sf.cglib.proxy.Enhancer,但当我检查它是否已经存在时。我看不懂第二个日志

我在类路径中使用了几个JAR文件:

asm-4.0
asm-util-4.0
cglib-3.0
app engine sdk 1.7.6
spring framework 3.2.0
问题是什么?我该怎么修理


提前感谢

看起来Spring 3.2已经包含了cglib和asm(请参阅发行说明的第4.21项:)。它们在弹簧芯罐中


您应该尝试从类路径中删除asm和cglib JAR,看看是否有什么不同。

从appium java客户端中排除cglib依赖项,如下所示,在pom.xml文件中。这为我解决了谷歌搜索数吨后的问题

<dependency>
      <groupId>io.appium</groupId>
      <artifactId>java-client</artifactId>
      <version>7.3.0</version>
      <exclusions>
        <exclusion>
          <groupId>cglib</groupId>
          <artifactId>cglib</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

木卫一
java客户端
7.3.0
cglib
cglib
请检查这是否有用:
<dependency>
      <groupId>io.appium</groupId>
      <artifactId>java-client</artifactId>
      <version>7.3.0</version>
      <exclusions>
        <exclusion>
          <groupId>cglib</groupId>
          <artifactId>cglib</artifactId>
        </exclusion>
      </exclusions>
    </dependency>