将项目部署到Google应用引擎时出错 [英] Error while deploying a project to google app engine

查看:93
本文介绍了将项目部署到Google应用引擎时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试部署我的项目时出现问题:
«找到一个太大而无法上传的jar文件»。当脚本尝试上传
appengine-api-1.0-sdk-1.5.3.jar时(15.8 MB,尽管只允许10MB文件),问题就会发生。
这个问题自2009年以来一直是众所周知的。谷歌问题追踪系统中有很多门票,这里也是如此。网络上有很多这种类型的消息。但是他们都提到了这两种解决方案:

1)使用--enable_jar_splitting。当然,我试过使用它。没有成功:

 #appengine-java-sdk-1.5.3 / bin / appcfg.sh -e some_mail@gmail.com --enable_jar_splitting更新项目/ war 
阅读应用程序配置数据...
......
java.lang.IllegalStateException:发现一个太大的jar文件无法上传:/ tmp /appcfg4869648953084473935.tmp/WEB-INF/classes/war/WEB-INF/lib/appengine-api-1.0-sdk- 1.5.3.jar。考虑使用--enable_jar_splitting。
无法更新应用:发现一个太大的jar文件无法上传:/tmp/appcfg4869648953084473935.tmp/WEB-INF/classes/war/WEB-INF/lib/appengine-api-1.0-sdk- 1.5。 3.jar。考虑使用--enable_jar_splitting。
请参阅日志[/tmp/appcfg5857347513630341491.log]了解更多信息。

我尝试使用不同版本的SDK(1.4.3,1.5.2和最新的1.5版本)。 3)。 2)将appengine-api-1.0-sdk-1.5.3.jar解压缩到WEB-INF / lib。这个脚本忽略了--enable_jar_splitting选项。

在这种情况下出现另一个错误。项目受到3000个文件的限制。大约有3500个文件。在appengine-api-1.0-sdk-1.5.3.jar归档和我的项目中的100个文件。所以,这个解决方案也不行。



3)我自己找到了3d解决方案。您可以从WEB-INF / lib目录中删除appengine-api-1.0-sdk-1.5.3.jar。它的作品,但只有在你有简单的项目的情况下。但是,如果项目使用Google Appengine的所有功能,则它不起作用。我需要使用数据存储和其他一些功能。如果没有appengine-api-1.0-sdk-1.5.3.jar项目可以部署,但它不起作用,并在谷歌错误控制台中产生错误(缺少类)。

我发送了一条消息给谷歌。他们保持沉默,不幸的是。



请帮助我,你们聪明的人。我会非常感激。希望有一个小技巧可以让它工作。

解决方案

您不需要上传API jar - 它是的App Engine平台。无论您更改的配置是否导致SDK尝试上传,都应该改回。


I have a problem trying to deploy my project: «Found a jar file too large to upload». The problem occurs when the script tries to upload appengine-api-1.0-sdk-1.5.3.jar (15.8 MB although only 10MB files are allowed). The problem is well-known since 2009. There are a lot of tickets in google issue tracker and here as well. There are a lot of messages of this kind all over the web. But all of them are referring to the two solutions:

1) Using the --enable_jar_splitting. Surely I've tried to use it. No success:

# appengine-java-sdk-1.5.3/bin/appcfg.sh -e some_mail@gmail.com --enable_jar_splitting update    project/war
Reading application configuration data...
......
java.lang.IllegalStateException: Found a jar file too large to upload:     "/tmp/appcfg4869648953084473935.tmp/WEB-INF/classes/war/WEB-INF/lib/appengine-api-1.0-sdk-    1.5.3.jar". Consider using --enable_jar_splitting.
Unable to update app: Found a jar file too large to upload:     "/tmp/appcfg4869648953084473935.tmp/WEB-INF/classes/war/WEB-INF/lib/appengine-api-1.0-sdk- 1.5.3.jar". Consider using --enable_jar_splitting.
Please see the logs [/tmp/appcfg5857347513630341491.log] for further information.

I tried to use different versions of SDK (1.4.3, 1.5.2 and the latest 1.5.3). But the script ignores the --enable_jar_splitting option.

2) Unpack appengine-api-1.0-sdk-1.5.3.jar to WEB-INF/lib. Another error arises in this case. Projects are limited by 3000 files. There are 3500 files approx. in appengine-api-1.0-sdk-1.5.3.jar archive and 100 files in my project. So, this solution does not work as well.

3) I have found the 3d solution myself. You can delete the appengine-api-1.0-sdk-1.5.3.jar from WEB-INF/lib directory. It works but only in cases you're having simple projects. But it does not work in case of projects using all the power of google appengine. I need to use datastore and some other functions. Without the appengine-api-1.0-sdk-1.5.3.jar the project could be deployed, but it does not work and produces errors in google error console (classes are missing).

I have sent a message to google. They're keeping silence, unfortunately.

Please help me, you clever guys. I will be awfully grateful. Hope, there is a little trick to get it work.

解决方案

You don't need to upload the API jar - it's part of the App Engine platform. Whatever configuration you've changed that is causing the SDK to try and upload it, you should change back.

这篇关于将项目部署到Google应用引擎时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆