I just downloaded GWT 2.5.1 SDK. I ran:
./webAppCreator -out /home/myUser/tmp/dummygwt/ com.dummygwt.OhHai
And it created a GWT project for me. I then navigated to /home/myUser/tmp/dummygwt/
and ran:
ant -buildfile build.xml devmode
And launched the GWT Development Mode tool and I clicked Launch Default Browser
which brought my "OhHai" app up in Firefox.
I then navigated to /home/myUser/tmp/dummygwt/src/com/dummygwt/server/GreetingServiceImpl.java
and opened it for editing. I changed the return value on the GreetingServiceImpl#greetServer
method to start with "Bonjourno," instead of "Hello,". This way, when you enter your name and click the "Send" button, the popup dialog will read "Bonjourno, ...". (I'm just playing around and having fun with this.)
I saved my changes to GreetingServiceImpl.java
and then (inside GWT Dev Mode tool), navigated to the Jetty tab and clicked Restart Server
and got the following warnings:
00:14:25.446 [WARN] Server class 'com.google.gwt.dev.shell.jetty.JDBCUnloader' could not be found in the web app, but was found on the system classpath
00:14:25.446 [WARN] Adding classpath entry 'file:/home/myUser/sandbox/dsi/workbench/gwt-sdk/gwt-2.5.1/gwt-dev.jar' to the web app classpath for this session More info: file:/home/myUser/sandbox/dsi/workbench/gwt-sdk/gwt-2.5.1/doc/helpInfo/webAppClassPath.html
I refreshed my browser, entered in a new name and clicked "Send". I'm still seeing "Hello, ..." instead of "Bonjourno, ...". Am I doing something wrong, or is this a bug with the GWT Dev Mode tool? Thanks in advance!
Note: If I exit the Dev Mode tool (and close the tab on my browser), and then relaunch Dev Mode, the server-side changes do take affect. But the GWT documentation clearly states that to "hot deploy" server-side code, all you need to do is restart the server from the tool...not exit it and restart the tool altogether...