Thursday, 3 September 2009

Moving from GWT v1.5.2 to v1.6 or v1.7

I recently tried to move from GWT v1.5.2 to v1.7. To do this, I followed the steps outlined in the release notes. However I hit a snag when trying to run in hosted mode. The hosted mode kept complaining that the web.xml couldn't be found. The message indicated that it was looking for the file in 'war\WEB-INF\web.xml'.

We use maven for our build process, and to make GWT and maven play nicely, you need to use the undocumented switch -war. So the arguments for the hosted mode become

-noserver -war src/main/webapp -startupUrl http://localhost:8087/app

No comments:

Post a Comment