Reputation: 183
My first GWT program is not running and showing error as shown below. Plz help. I don't understand what went wrong :( This is what it is shown in the console.
Loading modules
com.BasicProject.basic
Loading inherited module 'com.BasicProject.basic'
[ERROR] Unable to find 'com/BasicProject/basic.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method
Upvotes: 2
Views: 12150
Reputation: 4366
Your <PROJECT>.gwt.xml
file has a invalid <inherits.../>
line.
If you are trying to inherit some module, you have have to pass the path of that module's gwt.xml
file.
I'm guessing your module has this structure:
src
- com.BasicProject.basic
- client
- server
- shared
- Basic.gwt.xml
your <inherits.../>
line should say this:
<inherits name='com.BasicProject.basic.Basic'/>
because you have to inherit Basic.gwt.xml
.
See the Loading Modules section of this article for more details: http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml
Upvotes: 5