【问题标题】:3rd party .jar includes with Google App Engine第三方 .jar 包含在 Google App Engine 中
【发布时间】:2011-03-31 07:36:38
【问题描述】:

我正在使用 Java 编写一个使用 3rd 方库的 Google App Engine 应用程序。我在运行应用程序时遇到“java.lang.NoClassDefFoundError”,当它遇到对第 3 方库的引用时。这个应用程序在创建一个普通的 servlet 时可以工作,所以我很确定代码是正确的。

我正在 Eclipse 中开发。

应用引擎是否不允许使用 3rd 方库?

我需要以不同的方式配置类路径吗?

求助!!

【问题讨论】:

    标签: java eclipse google-app-engine classpath


    【解决方案1】:

    如果使用 Eclipse,您需要手动将所需的 jar 复制到 /WEB-INF/lib 文件夹。

    【讨论】:

      【解决方案2】:

      请查看您正在使用的库will play in the google app engine or not? 此链接列出了大多数第三方库/框架以及当您将它们的不同版本与 GAE 一起使用时出现的问题以及可能的解决方案(如果有)。

      ClassNotFoundError 出现在某些带有 GAE 的库的实例中。对于example spring-security 等

      【讨论】:

        猜你喜欢
        • 2013-01-28
        • 2011-04-23
        • 1970-01-01
        • 1970-01-01
        • 2021-04-01
        • 2012-01-07
        • 2020-05-21
        • 2011-12-30
        • 1970-01-01
        相关资源
        最近更新 更多