问题
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:
- Make a backup of your files.
- 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
- Refresh the project (right click it, choose Refresh)
- Finally use Project > Clean...
来源:https://stackoverflow.com/questions/10648978/gwt-eclipse-only-seeing-static-html-in-welcome-page