Error deploying to GAE

57 views
Skip to first unread message

Joe Pardi

unread,
Jul 24, 2016, 7:58:03 PM7/24/16
to Google App Engine
 I am receiving an error when trying to deploy using maven:

mvn clean install     --> works OK
mvn package           --> works OK
mvn gcloud:deploy -Dgcloud.gcloud_project=hospital-1382 -Dgcloud.version=1

[INFO] Updating service [default]...failed.
[INFO] ERROR: (gcloud.preview.app.deploy) Error Response: [400] Java 6 applications are prevented from being deployed to Google App Engine from any version of the SDK, including older ones. If you need to continue to deploy Java 6 applications for compatibilit
y reasons, you can request that your application be whitelisted for Java 6 deployment by visiting http://goo.gl/ycffXq.
[ERROR] Error: gcloud app command with exit code : 1

My app.yaml and pom.xml are attached.

Any help would be appreciated ...

- Joe
pom.xml
app.yaml

Nick (Cloud Platform Support)

unread,
Jul 26, 2016, 3:14:56 PM7/26/16
to Google App Engine
Hey Joe,

This forum is not meant for specific-issue technical support, but for high level discussion of the platform and services, design patterns, behaviours, etc. This issue should have been posted to Stack Overflow, where there is a large community of helpful users. We monitor Stack Overflow as well, so you can also rest assured we are likely to see your post. Now, as to this specific issue, it seems clear from the error message that the version of Java on your system is 6, while 7 is what's required to compile and deploy in production, since as mentioned in the docs, the App Engine Java Standard Runtime is using Java 7. 

So, you can check by running "java -version" at the command line, and if you don't see something like "java version "1.7.0_80"", you'll know to install Java 7 to proceed, which should take care of the error.

Cheers,

Nick
Cloud Platform Community Support
Reply all
Reply to author
Forward
0 new messages