Open mattsmall opened 9 years ago
Don't fully understand... We set the source and target to 1.7 in the JSPC compiler process we spawn: See in https://code.google.com/p/googleappengine/source/browse/trunk/java/src/main/com/google/appengine/tools/development/LocalJspC.java
Are you sure this particular class is being used for the JSP compilation step from the gcloud:deploy maven target? If so, the target version is not being honored and the JSP classes are clearly compiled to Java 8, as this is the error that I get when the app initializes:
Failed startup of context com.google.apphosting.utils.jetty.RuntimeAppEngineWebAppContext@9a39b8 {/,/base/data/home/apps/s~xx-01qa/maven-test.385131997885819845} org.mortbay.util.MultiException[java.lang.UnsupportedClassVersionError: org/apache/jsp/IframePortalView_jsp : Unsupported major.minor version 52.0, java.lang.UnsupportedClassVersionError: org/apache/jsp/appportalview/footer_jsp : Unsupported major.minor version 52.0, java.lang.UnsupportedClassVersionError:
This issue is certainly happening to a number of other folks as a search for "appengine jenkins UnsupportedClassVersionError" returns a number of results, none of which list a solution. Just suggestions to set the maven compiler version, or build on Java 7, neither of which work or can be done in this environment. For now we are just deploying locally, but it would be nice to move deployment to Jenkins.
Thanks!
If it helps with your troubleshooting, here are the relevant sections from the output where the JSPs are compiled (I think).
Beginning interaction for module default... 0% Scanning for jsp files. 0% Compiling jsp files. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Jun 19, 2015 3:40:50 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml INFO: Successfully processed /tmp/1434728438956-0/WEB-INF/web.xml Success. Temporary staging for module default directory left in /tmp/1434728438956-0 [INFO] Running gcloud app deploy... [INFO] Running python -S /google/google-cloud-sdk/lib/googlecloudsdk/gcloud/gcloud.py --quiet --project=xxx-01qa --verbosity=debug preview app deploy /tmp/1434728438956-0/app.yaml /tmp/1434728438956-0/cron.yaml /tmp/1434728438956-0/queue.yaml /tmp/1434728438956-0/index.yaml --version=maven-test
Here are all of the process properties:
[DEBUG] properties used {file.encoding.pkg=sun.io, env.ONRUN="/google/scripts/wrapdocker.sh" "/google/devshell/startup.sh" "cron" "/google/scripts/gcloud_docker_auth.sh", java.home=/usr/lib/jvm/java-8-openjdk-amd64/jre, appengine.sdk.version=1.9.20, env.GIT_URL=https://github.com/xxx/xxx-app.git, NODE_NAME=cloud-dev-java, PWD=/, JENKINS_URL=https://XXX.XXX.XXX.XXX/jenkins/, sun.font.fontmanager=sun.awt.X11FontManager, java.endorsed.dirs=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed, env.POM_VERSION=1.0-SNAPSHOT, env.HUDSON_HOME=/opt/bitnami/apps/jenkins/jenkins_home, gcloud.directory=/google/google-cloud-sdk, sun.os.patch.level=unknown, java.vendor.url=http://java.oracle.com/, env.NODE_NAME=cloud-dev-java, java.version=1.8.0_40-internal, GRADLE_VERSION=2.1, JOB_NAME=xxx-app_dev Deploy to QA, env.NODE_LABELS=cloud-dev-java, env.JENKINS_SERVER_COOKIE=e24cfd8e472d9148, jersey.version=2.17, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, user.name=root, sun.io.unicode.encoding=UnicodeLittle, sun.jnu.encoding=ANSI_X3.4-1968, java.runtime.name=OpenJDK Runtime Environment, env.DOCKER_HOST=unix:///var/run/docker.sock, env.DEBIAN_FRONTEND=noninteractive, env.GCLOUD_CONTAINER_SERVER=gcr.io, java.specification.name=Java Platform API Specification, user.timezone=Etc/UTC, path.separator=:, BUILD_TAG=jenkins-xxxx-app_dev Deploy to QA-2, CLOUD_SDK=/google/google-cloud-sdk, file.encoding=ANSI_X3.4-1968, PATH=/gradle-2.1/bin:/apache-maven-3.1.0/bin:/google/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, env.HOME=/root, sun.java.command=jenkins.maven3.agent.Maven31Main /var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2 /slave.jar /var/jenkins/maven31-interceptor.jar /var/jenkins/maven3-interceptor-commons.jar 47104, HUDSON_URL=https://xxxx/jenkins/, JENKINS_SERVER_COOKIE=e24cfd8e472d9148, EXECUTOR_NUMBER=0, env.BUILDTAG=XXXXX-2, env.HOSTNAME=8484ee5c2360, env.=/usr/bin/java, GIT_COMMIT=c35548897f9de311286b5e816ed230f9c2ffd1b6, java.io.tmpdir=/tmp, user.language=en, line.separator= , BUILD_URL=https://XXXXXXX/jenkins/job/xxxxx/2/, SHLVL=3, M2_HOME=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2, JNLP_FILE=slave-agent.jnlp, env.JOB_NAME=XXXXX, java.vm.info=mixed mode, env.BUILD_DISPLAY_NAME=#2, java.vm.specification.name=Java Virtual Machine Specification, BUILD_DISPLAY_NAME=#2, env.CLOUD_SDK=/google/google-cloud-sdk, env.BUILD_URL=https://XXX/jenkins/job/XXX/2/, env.M2_HOME=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2, guice.disable.misplaced.annotation.check=true, HUDSON_SERVER_COOKIE=e24cfd8e472d9148, env.POM_ARTIFACTID=xxx-app, env.JNLP_FILE=slave-agent.jnlp, MAVEN_HOME=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2, appengine.app.version=maven-test, java.awt.printerjob=sun.print.PSPrinterJob, maven3.interceptor.common=/var/jenkins/maven3-interceptor-commons.jar, CLASSPATH=, env.HUDSON_SERVER_COOKIE=e24cfd8e472d9148, DEBIAN_FRONTEND=noninteractive, env.LOG=file, devserver.port=8888, env.BUILD_NUMBER=2, os.name=Linux, java.specification.vendor=Oracle Corporation, BUILD_NUMBER=2, java.vm.name=OpenJDK 64-Bit Server VM, env.JOB_URL=https://xxx/jenkins/job/xxx-app_dev/, maven3.interceptor=/var/jenkins/maven31-interceptor.jar, java.library.path=/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib, env.PATH=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2/bin:/gradle-2.1/bin:/apache-maven-3.1.0/bin:/google/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, env.HUDSON_URL=https://xxx/jenkins/, env.JENKINS_URL=https://xxx/jenkins/, POM_GROUPID=com.xxx, POM_ARTIFACTID=xxx-app, java.class.version=52.0, env.SHLVL=3, JOB_URL=https://xxx/jenkins/job/xxx-app_dev%20Deploy%20to%20QA/, env.GIT_COMMIT=c35548897f9de311286b5e816ed230f9c2ffd1b6, GIT_PREVIOUS_COMMIT=bb45c77d6b855ebb735ba51dc0cd07e5b3420226, env.JENKINS_HOME=/opt/bitnami/apps/jenkins/jenkins_home, GIT_BRANCH=origin/dev, JENKINS_HOME=/opt/bitnami/apps/jenkins/jenkins_home, MAVEN_VERSION=3.1.0, BUILD_ID=2, sun.boot.library.path=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64, project.build.sourceEncoding=UTF-8, env.MAVEN_VERSION=3.1.0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, env.POM_DISPLAYNAME=xxx-app, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, POM_VERSION=1.0-SNAPSHOT, HUDSON_HOME=/opt/bitnami/apps/jenkins/jenkins_home, PATH+MAVEN=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2/bin, java.vm.specification.version=1.8, maven.build.timestamp.format=yyyy-MM-dd'T'HH-mm-ss, slf4j.version=1.7.10, awt.toolkit=sun.awt.X11.XToolkit, NODE_LABELS=cloud-dev-java, GCLOUD_CONTAINER_SERVER=gcr.io, env.MAVEN_HOME=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven3.2.2, LOG=file, sun.cpu.isalist=, securerandom.source=file:/dev/./urandom, java.ext.dirs=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext, os.version=3.16.0-0.bpo.4-amd64, user.home=/root, =/usr/bin/java, java.vm.vendor=Oracle Corporation, DOCKER_HOST=unix:///var/run/docker.sock, user.dir=/var/jenkins/workspace/xxx-app_dev Deploy to QA, env.PWD=/, ONRUN="/google/scripts/wrapdocker.sh" "/google/devshell/startup.sh" "cron" "/google/scripts/gcloud_docker_auth.sh", sun.cpu.endian=little, env.GIT_PREVIOUS_COMMIT=bb45c77d6b855ebb735ba51dc0cd07e5b3420226, java.vm.version=25.40-b13, java.class.path=/var/jenkins/maven31-agent.jar:/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2/boot/plexus-classworlds-2.5.1.jar:/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2/conf/logging, org.slf4j.simpleLogger.defaultLogLevel=debug, os.arch=amd64, maven.build.version=Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T13:51:42+00:00), WORKSPACE=/var/jenkins/workspace/xxx-app_dev Deploy to QA, env.POM_PACKAGING=war, guava.version=18.0, sun.java.launcher=SUN_STANDARD, appengine.application=xxx-01qa, env.BUILD_ID=2, java.vm.specification.vendor=Oracle Corporation, file.separator=/, env.GIT_BRANCH=origin/dev, java.runtime.version=1.8.0_40-internal-b09, sun.boot.class.path=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes, env.WORKSPACE=/var/jenkins/workspace/xxx-app_dev Deploy to QA, jackson.version=2.4.6, maven.version=3.2.2, user.country=US, env.EXECUTOR_NUMBER=0, POM_PACKAGING=war, maven.home=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2, HOSTNAME=8484ee5c2360, HOME=/root, java.vendor=Oracle Corporation, env.GRADLE_VERSION=2.1, env.POM_GROUPID=com.xxx, env.HUDSON_COOKIE=04e14fe6-bbab-41f5-8731-727b747a8ec4, java.specification.version=1.8, POM_DISPLAYNAME=xxx-app, GIT_URL=https://github.com/xxx/xxx-app.git, sun.arch.data.model=64}
which version of the gcloud-maven-plugin are you using?
On Fri, Jun 19, 2015 at 9:12 AM, mattsmall notifications@github.com wrote:
Are you sure this particular class is being used for the JSP compilation step from the gcloud:deploy maven target? If so, the target version is not being honored and the JSP classes are clearly compiled to Java 8, as this is the error that I get when the app initializes:
Failed startup of context com.google.apphosting.utils.jetty.RuntimeAppEngineWebAppContext@9a39b8 {/,/base/data/home/apps/s~xx-01qa/maven-test.385131997885819845} org.mortbay.util.MultiException[java.lang.UnsupportedClassVersionError: org/apache/jsp/IframePortalView_jsp : Unsupported major.minor version 52.0, java.lang.UnsupportedClassVersionError: org/apache/jsp/appportalview/footer_jsp : Unsupported major.minor version 52.0, java.lang.UnsupportedClassVersionError:
This issue is certainly happening to a number of other folks as a search for "appengine jenkins UnsupportedClassVersionError" returns a number of results, none of which list a solution. Just suggestions to set the maven compiler version, or build on Java 7, neither of which work or can be done in this environment. For now we are just deploying locally, but it would be nice to move deployment to Jenkins.
Thanks!
If it helps with your troubleshooting, here are the relevant sections from the output where the JSPs are compiled (I think).
Beginning interaction for module default... 0% Scanning for jsp files. 0% Compiling jsp files. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Jun 19, 2015 3:40:50 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml INFO: Successfully processed /tmp/1434728438956-0/WEB-INF/web.xml Success. Temporary staging for module default directory left in /tmp/1434728438956-0 [INFO] Running gcloud app deploy... [INFO] Running python -S /google/google-cloud-sdk/lib/googlecloudsdk/gcloud/gcloud.py --quiet --project=xxx-01qa --verbosity=debug preview app deploy /tmp/1434728438956-0/app.yaml /tmp/1434728438956-0/cron.yaml /tmp/1434728438956-0/queue.yaml /tmp/1434728438956-0/index.yaml --version=maven-test
Here are all of the process properties:
[DEBUG] properties used {file.encoding.pkg=sun.io, env.ONRUN="/google/scripts/wrapdocker.sh" "/google/devshell/startup.sh" "cron" "/google/scripts/gcloud_docker_auth.sh", java.home=/usr/lib/jvm/java-8-openjdk-amd64/jre, appengine.sdk.version=1.9.20, env.GIT_URL= https://github.com/xxx/xxx-app.git, NODE_NAME=cloud-dev-java, PWD=/, JENKINS_URL=https://XXX.XXX.XXX.XXX/jenkins/, sun.font.fontmanager=sun.awt.X11FontManager, java.endorsed.dirs=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed, env.POM_VERSION=1.0-SNAPSHOT, env.HUDSON_HOME=/opt/bitnami/apps/jenkins/jenkins_home, gcloud.directory=/google/google-cloud-sdk, sun.os.patch.level=unknown, java.vendor.url=http://java.oracle.com/, env.NODE_NAME=cloud-dev-java, java.version=1.8.0_40-internal, GRADLE_VERSION=2.1, JOB_NAME=xxx-app_dev Deploy to QA, env.NODE_LABELS=cloud-dev-java, env.JENKINS_SERVER_CO OKIE=e24cfd8e472d9148, jersey.version=2.17, java.vendor.url.bug= http://bugreport.sun.com/bugreport/, user.name=root, sun.io.unicode.encoding=UnicodeLittle, sun.jnu.encoding=ANSI_X3.4-1968, java.runtime.name=OpenJDK Runtime Environment, env.DOCKER_HOST=unix:///var/run/docker.sock, env.DEBIAN_FRONTEND=noninteractive, env.GCLOUD_CONTAINER_SERVER=gcr.io, java.specification.name=Java Platform API Specification, user.timezone=Etc/UTC, path.separator=:, BUILD_TAG=jenkins-xxxx-app_dev Deploy to QA-2, CLOUD_SDK=/google/google-cloud-sdk, file.encoding=ANSI_X3.4-1968, PATH=/gradle-2.1/bin:/apache-maven-3.1.0/bin:/google/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, env.HOME=/root, sun.java.command=jenkins.maven3.agent.Maven31Main /var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2 /slave.jar /var/jenkins/maven31-interceptor.jar /var/jenkins/maven3-interceptor-commons.jar 47104, HUDSON_URL=htt ps://xxxx/jenkins/, JENKINS_SERVER_COOKIE=e24cfd8e472d9148, EXECUTOR_NUMBER=0, env.BUILDTAG=XXXXX-2, env.HOSTNAME=8484ee5c2360, env.=/usr/bin/java, GIT_COMMIT=c35548897f9de311286b5e816ed230f9c2ffd1b6, java.io.tmpdir=/tmp, user.language=en, line.separator= , BUILD_URL=https://XXXXXXX/jenkins/job/xxxxx/2/, SHLVL=3, M2_HOME=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2, JNLP_FILE=slave-agent.jnlp, env.JOB_NAME=XXXXX, java.vm.info=mixed mode, env.BUILD_DISPLAY_NAME=#2 https://github.com/GoogleCloudPlatform/gcloud-maven-plugin/pull/2, java.vm.specification.name=Java Virtual Machine Specification, BUILD_DISPLAY_NAME=#2 https://github.com/GoogleCloudPlatform/gcloud-maven-plugin/pull/2, env.CLOUD_SDK=/google/google-cloud-sdk, env.BUILD_URL= https://XXX/jenkins/job/XXX/2/, env.M2_HOME=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2, guice.disable.misplaced.annotation.check=true, HUDSON_SERVER_COOKIE=e24cfd8e472d9148, env.POM_ARTIFACTID=xxx-app, env.JNLP_FILE=slave-agent.jnlp, MAVEN_HOME=/var/jenkins/tools/hudson.tasks. Maven_MavenInstallation/maven_3.2.2, appengine.app.version=maven-test, java.awt.printerjob=sun.print.PSPrinterJob, maven3.interceptor.common=/var/jenkins/maven3-interceptor-commons.jar, CLASSPATH=, env.HUDSON_SERVER_COOKIE=e24cfd8e472d9148, DEBIAN_FRONTEND=noninteractive, env.LOG=file, devserver.port=8888, env.BUILD_NUMBER=2, os.name=Linux, java.specification.vendor=Oracle Corporation, BUILD_NUMBER=2, java.vm.name=OpenJDK 64-Bit Server VM, env.JOB_URL=https://xxx/jenkins/job/xxx-app_dev/, maven3.interceptor=/var/jenkins/maven31-interceptor.jar, java.library.path=/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib, env.PATH=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2/bin:/gradle-2.1/bin:/apache-maven-3.1.0/bin:/google/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, env.HUDSON_URL=https://xxx/jenkins/, env.JENKINS_URL=https://xxx/jenkins/, POM_GR OUPID=com.xxx, POM_ARTIFACTID=xxx-app, java.class.version=52.0, env.SHLVL=3, JOB_URL= https://xxx/jenkins/job/xxx-app_dev%20Deploy%20to%20QA/, env.GIT_COMMIT=c35548897f9de311286b5e816ed230f9c2ffd1b6, GIT_PREVIOUS_COMMIT=bb45c77d6b855ebb735ba51dc0cd07e5b3420226, env.JENKINS_HOME=/opt/bitnami/apps/jenkins/jenkins_home, GIT_BRANCH=origin/dev, JENKINS_HOME=/opt/bitnami/apps/jenkins/jenkins_home, MAVEN_VERSION=3.1.0, BUILD_ID=2, sun.boot.library.path=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64, project.build.sourceEncoding=UTF-8, env.MAVEN_VERSION=3.1.0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, env.POM_DISPLAYNAME=xxx-app, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, POM_VERSION=1.0-SNAPSHOT, HUDSON_HOME=/opt/bitnami/apps/jenkins/jenkins_home, PATH+MAVEN=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2/bin, java.vm.specification.version=1.8, maven.build.timestamp.format=yyyy-MM-dd'T'HH-mm-ss, slf4j.version=1.7.10, awt.toolkit=sun.awt.X11.XToo lkit, NODE_LABELS=cloud-dev-java, GCLOUD_CONTAINER_SERVER=gcr.io, env.MAVEN_HOME=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven3.2.2, LOG=file, sun.cpu.isalist=, securerandom.source=file:/dev/./urandom, java.ext.dirs=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext, os.version=3.16.0-0.bpo.4-amd64, user.home=/root, =/usr/bin/java, java.vm.vendor=Oracle Corporation, DOCKER_HOST=unix:///var/run/docker.sock, user.dir=/var/jenkins/workspace/xxx-app_dev Deploy to QA, env.PWD=/, ONRUN="/google/scripts/wrapdocker.sh" "/google/devshell/startup.sh" "cron" "/google/scripts/gcloud_docker_auth.sh", sun.cpu.endian=little, env.GIT_PREVIOUS_COMMIT=bb45c77d6b855ebb735ba51dc0cd07e5b3420226, java.vm.version=25.40-b13, java.class.path=/var/jenkins/maven31-agent.jar:/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2/boot/plexus-classworlds-2.5.1.jar:/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2/conf/logging, org.slf4j.simpl eLogger.defaultLogLevel=debug, os.arch=amd64, maven.build.version=Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T13:51:42+00:00), WORKSPACE=/var/jenkins/workspace/xxx-app_dev Deploy to QA, env.POM_PACKAGING=war, guava.version=18.0, sun.java.launcher=SUN_STANDARD, appengine.application=xxx-01qa, env.BUILD_ID=2, java.vm.specification.vendor=Oracle Corporation, file.separator=/, env.GIT_BRANCH=origin/dev, java.runtime.version=1.8.0_40-internal-b09, sun.boot.class.path=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes, env.WORKSPACE=/var/jenkins/workspace/xxx-app_dev Deploy to QA, jackson.version=2.4.6, maven.version=3.2.2, user.country=US, env.EXECUTOR_NUMBER=0, POM_PACKAGING=war, maven.home=/var/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven_3.2.2, HOSTNAME=8484ee5c2360, HOME=/root, java.vendor=Oracle Corporation, env.GRADLE_VERSION=2.1, env.POM_GROUPID=com.xxx, env.HUDSON_COOKIE=04e14fe6-bbab-41f5-8731-727b747a8ec4, java.specification.version=1.8, POM_DISPLAYNAME=xxx-app, GIT_URL= https://github.com/xxx/xxx-app.git, sun.arch.data.model=64}
— Reply to this email directly or view it on GitHub https://github.com/GoogleCloudPlatform/gcloud-maven-plugin/issues/16#issuecomment-113561279 .
I am using 0.9.58.v20150505.
Happy to try a newer version if there is one.
Here is the complete configuration for the plugin:
groupId>com.google.appengine artifactId>gcloud-maven-plugin version>0.9.58.v20150505 configuration> gcloud_directory>${gcloud.directory} gcloud_project>${appengine.application} version>${appengine.app.version} verbosity>debug
retain_upload_dir>true</retain_upload_dir> <!-- Do not delete temporary (staging) gcloud_directory used in uploading Java apps -->
</configuration>
</plugin>
Can you try 0.9.65.v20150618 ?
On Fri, Jun 19, 2015 at 9:52 AM, mattsmall notifications@github.com wrote:
I am using 0.9.58.v20150505.
Happy to try a newer version if there is one.
Here is the complete configuration for the plugin:
com.google.appengine gcloud-maven-plugin 0.9.58.v20150505
${gcloud.directory} ${appengine.application} ${appengine.app.version} debug
true
— Reply to this email directly or view it on GitHub https://github.com/GoogleCloudPlatform/gcloud-maven-plugin/issues/16#issuecomment-113572660 .
This is an issue with the GAE SDK that Maven is only using The issue has been fixed and it will be in the 1.9.26 release later in August.
Thanks Ludoch.
I never got a chance to try the version you suggested, as my virtual server ran out of disk space, and I didn't have the bandwidth to clean it up.
Looking forward to getting back on track with this after the release.
Hi ludoch
Last night, I change maven plug-ins from 0.9.56.v20150415a to 2.0.9.74.v20150814 and then perform mvn clean install then mvn gcloud:deploy (based on AppEngine 1.9.24) , I use this module as ManagedVM for AppEngine
I can't deploy. It shows me error below ... seems it can't access quickstartgenerator.jar
[INFO] Running appcfg --enable_quickstart --disable_update_check -A notused stage /Users/rMBP-SUTTIWAT/Google Drive/Development/EclipseDev/rurle/rurle-batch/target/rurle-batch-0.0.1-SNAPSHOT /var/folders/qm/bf22dtkx6hn419d6m169d0zr0000gn/T/1439866971292-0 Reading application configuration data... ... (some successful to read xml)
Beginning interaction for module wat-batch... Unable to stage app: Failed to generate quickstart-web.xml.
Stop at this point. So what's the workaround for this?
Thanks sir.
When following the instructions for using Jenkins on App Engine (https://cloud.google.com/tools/repo/push-to-deploy), I am running into the following issue, which other seem to have hit before:
http://stackoverflow.com/questions/28212570/jsp-being-compiled-in-java-8-on-app-engine
The issue is that the server image for the Jenkins cloud-dev-java tooling executor includes Java 8, which is not compatible with app engine. Setting the compilation version to 1.7 in the mavin compile plugin does not work, as it is the JSP compilation step during the deploy which is causing the problem. I don't know if it is possible to update the jenkins installation to include Java 1.7 on the cloud-dev-java executor, but I wouldn't know how to do it if it is possible.
Would it be possible to add a configuration to the gloud-maven-plugin to direct the JSP compilation phase to target 1.7 class file output?