2017년 6월 23일 금요일

Deploying last version on Appengine


I downloaded the last version of the appinventor source code, called "mit-cml-appinventor-sources-nls-1000-g0b500e9", from this link (http://appinventor.mit.edu/appinventor-sources/). 
Everything was running fine when I built and tested on local host. However, when I want to deploy to Appengine, I get the following error

mars 06, 2017 2:45:10 PM java.util.prefs.WindowsPreferences <init>
AVERTISSEMENT: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Reading application configuration data...
mars 06, 2017 1:11:18 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFOS: Successfully processed appengine/build/war\WEB-INF/appengine-web.xml
mars 06, 2017 1:11:18 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFOS: Successfully processed appengine/build/war\WEB-INF/web.xml
mars 06, 2017 1:11:18 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFOS: Successfully processed appengine/build/war\WEB-INF/queue.xml

Beginning interaction for module default...
0% Created staging directory at: 'C:\Users\akaroui\AppData\Local\Temp\appcfg6417866665279285377.tmp'
5% Scanning for jsp files.
8% Compiling jsp files.

Error Details:
mars 06, 2017 1:12:18 PM org.apache.jasper.JspC processFile
INFOS: Built File: \login.jsp

java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
Unable to update app: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
Please see the logs [C:\Users\akaroui\AppData\Local\Temp\appcfg729116416241862327.log] for further information.

The log is talking about JDK/JRE problem but I don't think so, because every thing is fine with my JDK configuration.
Indeed, I can build and deploy to appengine older versions of appinventor source code without any problem.
This is the log when I deploy an older version: here, everything is working fine

mars 06, 2017 2:45:10 PM java.util.prefs.WindowsPreferences <init>
AVERTISSEMENT: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

Reading application configuration data...
mars 06, 2017 2:45:12 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFOS: Successfully processed appengine/build/war\WEB-INF/appengine-web.xml
mars 06, 2017 2:45:12 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFOS: Successfully processed appengine/build/war\WEB-INF/web.xml
mars 06, 2017 2:45:12 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFOS: Successfully processed appengine/build/war\WEB-INF/queue.xml
mars 06, 2017 2:45:12 PM com.google.apphosting.utils.config.IndexesXmlReader readConfigXml
INFOS: Successfully processed appengine\build\war\WEB-INF\appengine-generated\datastore-indexes-auto.xml

Beginning interaction for module default...
0% Created staging directory at: 'C:\Users\akaroui\AppData\Local\Temp\appcfg7899835197595451287.tmp'
5% Scanning for jsp files.
20% Scanning files on local disk.
mars 06, 2017 2:46:27 PM com.google.appengine.tools.admin.AppVersionUpload addFile
GRAVE: Invalid character in filename: static/images/learn-android1(1).gif
25% Scanned 250 files.
28% Scanned 500 files.
31% Scanned 750 files.
33% Scanned 1000 files.
34% Scanned 1250 files.
35% Scanned 1500 files.
36% Scanned 1750 files.
37% Scanned 2000 files.
37% Scanned 2250 files.
37% Scanned 2500 files.
37% Scanned 2750 files.
37% Scanned 3000 files.
37% Initiating update.
37% Cloning 23 static files.
37% Cloning 3203 application files.
37% Cloned 2000 files.
40% Uploading 0 files.
52% Initializing precompilation...
90% Deploying new version.
95% Closing update: new version is ready to start serving.
98% Uploading index definitions.
99% Uploading task queues.

Update for module default completed successfully.
Success.
Cleaning up temporary files for module default...

Comparing the two logs, I noticed that the second one is reading in addition an auto-generated xml file called "datastore-indexes-auto.xml".
I don't know if that's a part of the problem...

Have anyone already tried to build and deploy the "mit-cml-appinventor-sources-nls-1000-g0b500e9" on appengine ?

--
The latest App Engine version that I have working is 1.9.27

(that's what I'm currently using)

--
Thanks for your reply. It was finally a config problem. I actually switched to Linux and was able to build and deploy successfully !
However, I tested with Appengine 1.9.50 (the current available version on google website) but for better results I will be looking for 1.9.27 version as you said.

--

댓글 없음:

댓글 쓰기