Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT Compiler can't find gwt.xml

I have changed and renamed my package structure of my GWT project, and when trying to run the project as a web application, the module isn't found and I get the following message:

[ERROR] Unable to find 'de/xx/focus/My_Projekt.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

Which class is used to load the module, and where to update the new path, respectively?

like image 643
ph09 Avatar asked Sep 13 '11 11:09

ph09


2 Answers

I spent an hour staring at my gwt.xml file trying to figure out what I had done wrong after restructuring a project. Turned out it was in a sub-package of client instead of client itself. Right at the bottom of a long list of packages and sub-packages too. So in Eclipse's tree view, it looked like it was in the right place. Finally I realized it was one level in too deep. Face-palm time. I would also study the Run Configurations. If you are using Eclipse and you regularly do a "Run As" then "Web Configuration", this time do "Run As" and select "Run Configurations" at the bottom of the sub-menu. Go through it, tab by tab, but in particular study the "Arguments" tab and see if it needs to be updated. You can also get to the settings view the Project -> Properties -> Run/Debug Settings.

like image 95
Steve J Avatar answered Oct 08 '22 03:10

Steve J


Also under "Run Configurations..." > GWT tab, I had to remove and then re-add my app's sole GWT module. Only after doing this I could run the app again.

like image 24
Lucas A. Avatar answered Oct 08 '22 02:10

Lucas A.