GWT模块可能需要(重新)编译REDUX [英] GWT module may need to be (re)compiled REDUX

查看:114
本文介绍了GWT模块可能需要(重新)编译REDUX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编译模式下运行时,我得到这个可怕的GWT模块'mymodule'可能需要(重新)编译对话框消息。

When running in compiled mode I get this dreaded GWT Module 'mymodule' may need to be (re)compiled dialog message.

当GWT以编译模式运行给出这个错误信息时,其他人建议尝试的东西。我打开了由maven创建的WAR文件,并且所有文件都放在了正确的位置。我确认这是针对另一个没有出现此错误的GWT maven项目。但是,以下建议都没有解决问题。我也无法确定这两个项目之间有什么区别 - 工作和我的工作不能在编译模式下运行。

I've compiled a list of the things that others have suggested to try when given this error message by GWT running in compiled mode. I've opened the WAR file created by maven and all the files are in the right place. I confirmed this against another GWT maven project that does not get this error. However, none of the below suggestions have corrected the problem. Nor have I been able to identify what difference is missing between these two projects -- the one that works and mine that will not run in compiled mode.

  • does name in html launch page match the module?
  • Lots of lame suggestions to add the gwt.codesrv query string param onto the URL. However, the point is to run without in compiled mode. Obviously, I don't want to run in hosted mode. That works. I'm trying to run in compiled mode in Tomcat.
  • Clearing browser cache? -- nope. didn't help
  • I have not over-riden the "user.agent" property in mymodule.gwt.xml
  • add to the maven-clean-plugin configuration your eclipse output directory: src/main/webapp/WEB-INF/classes

我还可以尝试什么? p>

What else can I try?

推荐答案

您是否使用 src / main / webapp 作为DevMode启动战争文件夹?换句话说,在 src / main / webapp 中是否有 *。nocache.js ?在这种情况下,这个文件将覆盖由gwt-maven-plugin调用的GWT编译器生成的文件。

Have you started the DevMode using your src/main/webapp as the "war folder"? or in other words, is there a *.nocache.js in your src/main/webapp? In that case, this file will overwrite the one produced by the GWT compiler as called by the gwt-maven-plugin.

*。nocache由DevMode生成的.js (当没有人存在时,由前一个GWT编译生成)只包含启动DevMode所需的位,否则将失败并出现上述错误。

The *.nocache.js generated by the DevMode (when no one exists, generated by a previous GWT compilation) contains only the necessary bits to launch the DevMode, and will otherwise fail with the above-mentioned error.

这篇关于GWT模块可能需要(重新)编译REDUX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆