-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class file is Java 8 but max supported is Java 7 #1365
Comments
Hi @grembek , can you please check what's schema version set in your web.xml? Also can you share the web.xml used for staging? You can found it under <Eclipse workspace>/.metadata/.plugins/com.google.cloud.tools.eclipse.appengine.deploy/tmp/<timestamp>/staging/WEB-INF. |
Sure. This is the web.xml within the project:
There are two files in the metadata/plugin folder (different timestamps):
|
So the problem is that the web.xml uses version 3.1, while App Engine Standard only supports 2.5 which causes the staging to fail with this error message. Please change the version and try deploying again. |
Thanks |
I wonder if this is something we could mark with a warning/error in Eclipse? @abbiefarr What do you think? Also, there's a second issue here though it's not the cause of the problem you're seeing. You're using the old appengine SDK based maven plugin in your pom.xml whereas the IDES are using gcloud. The equivalent maven plugin is https://cloud.google.com/appengine/docs/java/tools/using-maven |
Cross-ref: GoogleCloudPlatform/cloud-code-intellij#1230 |
Hi,
I am struggling for two days to deploy my code to Google App Engine and I am unable to do so because of the error "Class file is Java 8 but max supported is Java 7". I tried everything I could find on the web and it is very frustrating that I cannot do so. The App can run locally, but fails I deploy it to the remote server. Can you please advise.
"Beginning interaction for module default...
0% Scanning for jsp files.
0% Compiling jsp files.
Unable to stage app: Class file is Java 8 but max supported is Java 7: org/eclipse/jetty/apache/jsp/JettyJasperInitializer$1.class in /Users/grembek/Documents/DevelopmentApps/google-cloud-sdk/platform/google_appengine/google/appengine/tools/java/jetty93/jetty-distribution/lib/apache-jsp/org.eclipse.jetty.apache-jsp-9.3.14.v20161028-nolog.jar
Please see the logs [/var/folders/24/1d9xwv3536xf_z483zhs_n300000gn/T/appcfg110329673286093132.log] for further information."
The text was updated successfully, but these errors were encountered: