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

查看:24
本文介绍了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

我还能尝试什么?

推荐答案

您是否使用 src/main/webapp 作为war 文件夹"启动了 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.

由 DevMode 生成的 *.nocache.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天全站免登陆