How to fix a new error that stops the deployment of the application engine? (after Google today clicked on the update for the cloud SDK tools)

I use IntelliJ and I deploy it in a standard Google App Engine environment.

I have a new error after Google transferred the Cloud Tools SDK update to my development machine.

I can no longer install current or previously deployed working versions in Google App Engine using IntelliJ.

**error**: package com.google.appengine.api.users does not exist import 

warning: [options] bootstrap class path not set in conjunction with -source 1.7
C:\Users\Dave\AppData\Local\Temp\1500787298445-0\org\apache\jsp\clinicalTrials**_jsp.java**:6: **error**: **package com.google.appengine.api.users does not exist**
import com.google.appengine.api.users.User;

(Note: in 4 different JSP files there are 17 such errors, in the IDE there are no problems navigating the pages <% @page import = "com.google.appengine.api.users.User"%>, they all seem to be in the user package they are not new and have not worked for some time without any problems).

An update initiated by Google occurred today. It also violated my ability to deploy old code. I literally have a binary archive of my development tree (and not just commit), and this version will no longer be deployed and will generate the same error as my last code.

So it looks like what has changed in the environment, not in the code. Local deployment of the old binary code backup works just fine (as before); this is only a remote publish / deploy issue.

I saw a guide to go to all JSP files on deployment / local deployment to cause local problems, but no errors were found.

Current JSP files worked fine before (plus I have an old binary backup that is now broken but previously successfully deployed).


gcloud , gsutil, gcloud app-engine-java ( )

gcloud init ( )

gcloud → yields- > " ".

JDK 1.8 w/Project Language Level = "7" ( , 1 ).

, : IntelliJ JDK ( JRE). % JAVA_HOME% .

( " Google App Engine" /-... , 1-, , , "Google Cloud Tools", , , ... " Google Plugin - ( Google App Engine Integration), Google Cloud Tools Java. - , "... , ... .)

IntelliJ IDE. . ( 2017.1.5 2017.2)


. Google, . ( ) . Windows mvn . , IntelliJ, . IntelliJ , Google cloud appspot.com. , , -, IntelliJ IDE.

IntelliJ...

INFO: Built File: \guestbook.jsp
warning: [options] bootstrap class path not set in conjunction with -source 1.7
C:\Users\Dave\AppData\Local\Temp\1500868898750-0\org\apache\jsp\**guestbook_jsp.java**:6: **error: package com.google.appengine.api.users does not exist**
import com.google.appengine.api.users.User;
                                 ^

//jsp- C:\Users\Dave\AppData\Local\Temp ... , ... Temp (, 7/22/2017).


Maven ( , Windows) JSP ... :

... 0% : 'C:\Users\Dave\AppData\Local\Temp\appcfg3686517196875747128.tmp' 5% jsp. 8% jsp. 23 2017 . 8:47:32 PM org.apache.jasper.JspC processFile INFO: :\guestbook.jsp warning: [options] bootstrap, -source 1.7 11% git. 20% . 25% . 28% 1 . 31% 24 . 40% 2 . 52% 1 . 61% 2 . 68% 2 (), 1 . 73% ... 90% . 95% : . 98% . default . . ... [INFO] -------------------------------------------------- --------------------- [INFO] [INFO] -------------------------------------------------- --------------------- [INFO] : 53.733 s [INFO] :

2017-07-23T20: 47: 53-07: 00 [INFO] : 35M/580M [INFO]

+4
1
+2

Source: https://habr.com/ru/post/1682057/


All Articles