本文介绍了GWT(日食) - 只在欢迎页面看到静态HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的新GWT项目工作得很好,直到它停止 - 现在欢迎页面被提供,但我只看到它上面的静态html,没有其他东西。我发现任何地方都没有错误,我可以看到js文件是从html构建和引用的,在eclipse中的新项目中创建的示例web应用程序也是如此 - 它是Web应用程序启动器项目 - 我看到输入您名称:在浏览器上,没有别的。



有人会保存我的理智吗?

解决方案

在生成的文件中出现错误时,我遇到过这几次(很少有)。对于GWT项目来说,典型的Project> Clean ...是不够的。以下是我用来解决此问题的完整流程:
$ b


  1. 备份您的文件。

  2. 删除以下目录(通过Eclipse中的Navigator视图或外部文件浏览器)

    • gwt-unitCache

    • war / mymodulename

    • war / WEB-INF / classes

    • war / WEB-INF / deploy
    • >

  3. 刷新项目(右键单击它,选择刷新)

  4. 最后使用Project> Clean ...


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?

解决方案

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...

这篇关于GWT(日食) - 只在欢迎页面看到静态HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 15:16