Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Upload task should enable JAR splitting by default #8

Closed
bmuschko opened this issue Nov 16, 2011 · 3 comments
Closed

Upload task should enable JAR splitting by default #8

bmuschko opened this issue Nov 16, 2011 · 3 comments
Assignees
Milestone

Comments

@bmuschko
Copy link
Owner

For uploading the WAR file to GAE you might run into a size constraint if your artifact is really big. This is a known issue. Google recommends setting the option --enable_jar_splitting to improve this.

For more information see this posting on the Gaelyk Google Groups.

@ghost ghost assigned bmuschko Nov 16, 2011
@drindt
Copy link

drindt commented Dec 18, 2014

The changelog says its enabled by default, but i got this message during the deploy:

com.google.appengine.tools.admin.LocalIOException: Jar /tmp/appcfg3942121943129002742.tmp/WEB-INF/lib/gwt-user-2.7.0.jar is too large. Consider using --enable_jar_splitting.
Unable to update app: Jar /tmp/appcfg3942121943129002742.tmp/WEB-INF/lib/gwt-user-2.7.0.jar is too large. Consider using --enable_jar_splitting.
Please see the logs [/tmp/appcfg6370452515418377347.log] for further information.

the log contains:

Unable to update:
com.google.appengine.tools.admin.LocalIOException: Jar /tmp/appcfg2427251093703000787.tmp/WEB-INF/lib/gwt-user-2.7.0.jar is too large. Consider using --enable_jar_splitting.
    at com.google.appengine.tools.admin.AppVersionUpload.scanFiles(AppVersionUpload.java:249)
    at com.google.appengine.tools.admin.AppVersionUpload.uploadFilesTransaction(AppVersionUpload.java:175)
    at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:153)
    at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:474)
    at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:55)
    at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:1361)
    at com.google.appengine.tools.admin.AppCfg.executeAction(AppCfg.java:332)
    at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:213)
    at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:124)
    at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:120)
com.google.appengine.tools.admin.AdminException: Unable to update app: Jar /tmp/appcfg2427251093703000787.tmp/WEB-INF/lib/gwt-user-2.7.0.jar is too large. Consider using --enable_jar_splitting.
    at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:480)
    at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:55)
    at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:1361)
    at com.google.appengine.tools.admin.AppCfg.executeAction(AppCfg.java:332)
    at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:213)
    at com.google.appengine.tools.admin.AppCfg.<init>(AppCfg.java:124)
    at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:120)
Caused by: com.google.appengine.tools.admin.LocalIOException: Jar /tmp/appcfg2427251093703000787.tmp/WEB-INF/lib/gwt-user-2.7.0.jar is too large. Consider using --enable_jar_splitting.
    at com.google.appengine.tools.admin.AppVersionUpload.scanFiles(AppVersionUpload.java:249)
    at com.google.appengine.tools.admin.AppVersionUpload.uploadFilesTransaction(AppVersionUpload.java:175)
    at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:153)
    at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:474)
    ... 6 more

The file "gwt-user-2.7.0.jar" is around 31M.
I am unable to deploy at the moment. It would be great to get a hint how to solve this. Thank you very much.

@bmuschko
Copy link
Owner Author

This repository is not maintained anymore. Please address the issue in the new repository of the plugin.

@bmuschko bmuschko reopened this Dec 18, 2014
@varunvajpayee
Copy link

you should not upload this jar. This is only be supposed to be used in development of the app (only at compile time). This will be provided by app engine at run time. Try using "provided" as scope in maven for this jar.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants