Configure GWT deployment context within Eclipse IDE

Do you know this problem?
When starting a GWT application within the dev-mode it will be deployed in the root context. But when building the project and deploying it, e.g., usually some context other than root will be used (on Tomcat for instance, the name of the war file will be used by default).

Solution
To configure the deployment context in the IDE, place a “jetty-web.xml” in your application’s WEB-INF folder containing the following code:

To be able to open the application via double-click in the Eclipse “Development Mode” view, you need to adjust the launch configuration. To do so, navigate to the confiration’s “Arguments” tab and adjust the -startupUrl value in the “Program arguments” section.