GAE plugin or GAE appcfg.cmd do not work with --enable_jar_splitting parameter

I have this error message:

Preparing for deployment: Created intermediate settings directory: 'C: \ Users \ Lite \ AppData \ Local \ Temp \ appcfg4768292050846213939.tmp' Scan jsp files. Compiling jsp files. Scan files to a local drive. java.io.IOException: Jar C: \ Users \ Lite \ AppData \ Local \ Temp \ appcfg4768292050846213939.tmp \ WEB-INF \ Lib \ AppEngine-api-1.0-SDK-1.7.7.jar is too large. Consider using --enable_jar_splitting.

I issued a command like this, but it does not work with --enable_jar_splitting.

"C: \ Program Files \ Java \ jdk1.7.0_17 \ bin \ java.exe" -Xmx1100m -cp "% ~ Dp0 .. \ Lib \ Appengine-tools-api.jar" com.google.appengine.tools.admin .AppCfg --enable_jar_splitting -e user@domain.com update "C: \ myfolder \ myproject \ war"

Any comments?

+5
source share
4 answers

SDK for Java App Engine 1.7.7.1 released to solve this problem with specific windows. Updated Google Eclipse plugin, as well as artifacts and Google App Engine Maven plugin (just use version 1.7.7.1).

+4
source

I solved the problem by breaking the appengine-api-1.0-sdk-1.7.7.jar file into my own.

- , , :

1) "appengine-api-1.0-sdk-1.7.7.jar" 7z.

2) 2 ( 15 ) .

3) "appengine-api-1.0-sdk-1.7.7-1", - "appengine-api-1.0-sdk-1.7.7-2".

4) , jdk. Msgstr "C:\Program Files\Java\jdk1.7.0_17\bin". , bin.

5) : "appengine-api-1.0-sdk-1.7.7-1", .

6) cmd.exe "jar cf appengine-api-1.0-sdk-1.7.7-1.jar *" .

7) ( 5 6).

8) \war\web-inf\libs, appengine-api-1.0-sdk-1.7.7.jar.

9) appengine-api-1.0-sdk-1.7.7-1.jar appengine-api-1.0-sdk-1.7.7-2.jar \war\web-inf\libs.

10) . !

EDIT: .

0

, :

1) Windows eclipse. "\ \Plugins\com.google.appengine.eclipse.sdkbundle_1.7.7\AppEngine---1.7.7\Lib\".

2) "appengine-api-1.0-sdk-1.7.7.jar", "appengine-api-1.0-sdk-1.7.7.original". ( , )

3) - "appengine-api-1.0-sdk-1.7.7-1.jar" "appengine-api-1.0-sdk-1.7.7-2.jar" .

4) , . .

0

:

To clarify, we're going to release a minor update for 1.7.7. For the
meantime, you can re-jar the file as follows:

cd to the working directory
$ jar xf somewhere\appengine-java-sdk-1.7.7\lib\user\
appengine-api-1.0-sdk-1.7.7.**jar
$ jar cfm somewhere\appengine-api-1.0-sdk-1.7.7.**jar META-INF/MANIFEST.MF *
and replace the old jar with the newly created one.

http://www.mail-archive.com/google-appengine@googlegroups.com/msg67954.html , :

bin JAVA, jar.exe

cd "C:\Program Files\Java\jdk1.7.0_17\bin\"

"appengine-api-1.0-sdk-1.7.7.jar" - . 2 ( ) \war\WEB-INF\lib eclipse, "plugins" eclipse. : \plugins\com.google.appengine.eclipse.sdkbundle_1.7.7\appengine-java-sdk-1.7.7\lib\ .

:

jar xf "C:\whatever-folder-your-eclipse-is-in\plugins\com.google.appengine.eclipse.sdkbundle_1.7.7\appengine-java-sdk-1.7.7\lib\user\appengine-api-1.0-sdk-1.7.7.jar"

jar cfm "C:\whatever-folder-your-eclipse-is-in\plugins\com.google.appengine.eclipse.sdkbundle_1.7.7\appengine-java-sdk-1.7.7\lib\user\appengine-api-1.0-sdk-1.7.7.jar" META-INF/MANIFEST.MF

Now, if you go into this folder and check the .jar file, now it should be 11 mb instead of 30. Now you need to copy this file and replace the same jar in the webapp folder in \ War \ WEB-INF \ lib \ so that both banks with the name "appengine-api-1.0-sdk-1.7.7.jar" had 11 mb size.

Now the error should disappear, and you have nothing to split.

0
source

All Articles