I am trying to use Gson to parse a class for storing as a blob on Google Appengine. I have added the file gson-1.7.1.jar to my build path and the web-inf/lib folder. My app compiles fine, but when attempting to run, the program fails with an error on Gson g = new Gson();
The error message is:
java.lang.NoClassDefFoundError: Lcom/google/appengine/repackaged/org/joda/time/DateTime;
Has anyone found the same issue, or managed to get it to work? Any alternative JSON parsers that are known to work with appengine?
GSon itself has no dependency on joda. Are you importing from
repackaged? That’s not supported.I’m using GSon 1.7.1 with SDK 1.5.4, and it works fine, but I don’t have DateTimes represented in JSON.