GWT (eclipse) - only seeing static html in welcome page

余生颓废 提交于 2019-12-25 01:36:44

问题


Surely very basic, but I am a server-side/pure java developer, just started with GWT...

My new GWT project was working just fine, until it stopped - now the welcome page is served, but I only see the static html on it and nothing else. I see no error anywhere, I can see that the js file is built and referenced from the html, Same happens with the sample web app that's created in a new project in eclipse - it is the Web application starter project - I see "enter you name:" on the browser and nothing else.

Would someone save my sanity?


回答1:


Try to wait longer if you've really all right and no any exceptions or errors are thrown. The fact that the static HTML is displayed immediately but compiling your Java code takes some time.




回答2:


I have encountered this a few times (very rarely indeed) when there was an error in the generated files. The typical "Project > Clean..." alone is not enough with GWT projects. Here's the full process I have used to resolve this:

  1. Make a backup of your files.
  2. Delete the following directories (either through the "Navigator" view in Eclipse, or with an external file browser)
    • gwt-unitCache
    • war/mymodulename
    • war/WEB-INF/classes
    • war/WEB-INF/deploy
  3. Refresh the project (right click it, choose Refresh)
  4. Finally use Project > Clean...


来源:https://stackoverflow.com/questions/10648978/gwt-eclipse-only-seeing-static-html-in-welcome-page

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!