Problem:
When during the launch of an application on local Jetty server via Eclipse, there is the following error :
Initializing App Engine server [ERROR] Unable to start App Engine server java.lang.RuntimeException: Unable to restore the previous TimeZone at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:228) ... Caused by: java.lang.NoSuchFieldException: defaultZoneTL at java.lang.Class.getDeclaredField(Class.java:1882) at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:222) ... 6 more [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’