GWT GAE JSON Parsing Issue: No source code is available for type com.google.gwt.json.client did you forget to inherit a required module?

Problem:

Compiling module ...
   Validating newly compiled units
      Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
   Finding entry point classes
      [ERROR] Errors in 'file:/Users/neil/Documents/neil/Research/Motivation-Model/code/gwt-ui/gwt-UI/src/org/activeintel/motivation/ui/client/Gwt_UI.java'
         [ERROR] Line 197: No source code is available for type com.google.gwt.json.client.JSONValue; did you forget to inherit a required module?
         [ERROR] Line 197: No source code is available for type com.google.gwt.json.client.JSONParser; did you forget to inherit a required module?
         [ERROR] Line 198: No source code is available for type com.google.gwt.json.client.JSONArray; did you forget to inherit a required module?
      [ERROR] Unable to find type 'org.activeintel.motivation.ui.client.Gwt_UI'
         [ERROR] Hint: Previous compiler errors may have made this type unavailable
         [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly

Solution:

Add
<inherits name="com.google.gwt.json.JSON"/>
To the configuration file of your entry point class
i.e. <package>.<proj>.gwt.xml
after other inherits, e.g.:

<!– Other module inherits                                      –>

<inherits name=”com.google.gwt.http.HTTP”/>

 

Keywords: Google AppEngine App Engine, GWT, JSON error

 

About Neil Rubens

see http://ActiveIntelligence.org
This entry was posted in Uncategorized. Bookmark the permalink.

One Response to GWT GAE JSON Parsing Issue: No source code is available for type com.google.gwt.json.client did you forget to inherit a required module?

  1. nachiketha says:

    thanks 🙂 It worked..

Leave a Reply

Your email address will not be published. Required fields are marked *


*