Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running in SuperDevMode

I tried SuperDevMode however when the URL: http://localhost:9876/ is accessed

and Dev Mode On is clicked, I'm getting this:

Can't find any GWT Modules on this page.

What could I be missing? I already did

$mvn gwt:compile
$mvn gwt:run-codeserver

I have these versions in the POM:

    <gwt.version>2.5.0</gwt.version>
    <gwt.maven.version>2.5.0</gwt.maven.version>

Do I need to update the GWT version or the GWT Maven version? Or what I missing?

like image 912
quarks Avatar asked Jul 22 '13 03:07

quarks


2 Answers

As the page explains, the "Dev Mode On" and "Dev Mode Off" should be added as bookmarks to your browser. You'll then use the bookmark when visiting your GWT app to start a Super Dev Mode session.

I wrote a while back about how Super Dev Mode works; hopefully that should clarify things for you.

Update: note that with GWT 2.7, superdevmode is enabled by default within devmode, so you just launch DevMode "as usual" and it actually uses SuperDevMode under-the-hood, with a "compile on load" hook so you no longer use the bookmarklets. The "compile on load" hook can also be enabled with CodeServer using the -launcherDir argument (point it to your war folder). Note that in both cases, the *.nocache.js will then be overwritten with a script tailored for SuperDevMode, containing the "compile on load" hook; so make sure you clean and recompile before deploying. To get back to "classic" DevMode in GWT 2.7, pass -nosuperDevMode to the DevMode.

like image 94
Thomas Broyer Avatar answered Sep 21 '22 12:09

Thomas Broyer


The idea when running SuperDevMode is:

  • Run mvn gwt:run-codeserver
  • Run the app web container, Tomcat/Wildfly or GAE (in GAE its just mvn appengine:devserver)

The first one, runs the GWT codeserver responsible in compiling the app from within the bookmarklet. The second, is to run the web container, because the app is already compiled, so it can run from within the web container directly

like image 34
quarks Avatar answered Sep 19 '22 12:09

quarks