Problem:
When during the launch of an application on local Jetty server via Eclipse, there is the following error :
01 | Initializing App Engine server |
02 | [ERROR] Unable to start App Engine server |
03 | java.lang.RuntimeException: Unable to restore the previous TimeZone |
04 | at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:228) |
05 | ... |
06 | Caused by: java.lang.NoSuchFieldException: defaultZoneTL |
07 | at java.lang.Class.getDeclaredField(Class.java:1882) |
08 | at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:222) |
09 | ... 6 more |
10 | [ERROR] shell failed in doStartupServer method |
Solution
In Eclipse
- Run -> Run Configurations,
- Select your application to deploy,
- Go in Arguments tab,
- Then in the section VM arguments add the argument ‘-Dappengine.user.timezone=UTC’ or ‘-Dappengine.user.timezone.impl=UTC’