Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT module may need to be (re)compiled REDUX

Tags:

maven

gwt

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

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

What else can I try?

like image 847
James A Wilson Avatar asked Apr 19 '11 15:04

James A Wilson


1 Answers

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.

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.

like image 128
Thomas Broyer Avatar answered Oct 09 '22 01:10

Thomas Broyer