title: GWT hosted mode not working with Spring + Eclipse + GWT Eclipse plugin
body: <p>I've been trying to get GWT working with Spring for a while now. Is there anyone who is using official Eclipse GWT plugin with Spring, and who has managed to get hosted mode working with that combination?</p>
  
  <p>I'm using GWTController to initialize GWT through dispatcher-servlet.xml. Since my WEB-INF is not in war, but in WebContent folder, I use "-war WebContent" switch when compiling Java code to .js.</p>
  
  <p>As for hosted mode... if I try to run it through IDE (Run as Web Application) I get "Launch failed - Could not find any host pages in project MyProject." I tried running it with Ant task which goes something like this:</p>
  
  <pre><code>&lt;condition property="XstartOnFirstThread" value="-XstartOnFirstThread"&gt;
      &lt;os family="mac"/&gt;
  &lt;/condition&gt;
  &lt;condition property="XstartOnFirstThread" value=""&gt;
      &lt;not&gt;&lt;os family="mac"/&gt;&lt;/not&gt;
  &lt;/condition&gt;
  
  &lt;target name="hosted" depends="" description="Run hosted mode"&gt;
      &lt;java failonerror="true" fork="true" classname="com.google.gwt.dev.HostedMode"&gt;
          &lt;classpath&gt;
              &lt;pathelement location="src" /&gt;
              &lt;path refid="my-client-classpath" /&gt;
          &lt;/classpath&gt;
          &lt;jvmarg value="-Xmx256M" /&gt;
          &lt;jvmarg line="${XstartOnFirstThread}" /&gt;
          &lt;arg value="-startupUrl" /&gt;
          &lt;arg value="MyPage.html" /&gt;
          &lt;arg value="my.gwt.client.Whatever" /&gt;
      &lt;/java&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>This results in hosted mode starting, but I get 404 instead of my web page...</p>
  
  <p>EDIT: When I go to hosted mode, I see folder with compiled Javascript code but nothing else. So my question is basically has someone got a good tutorial or a setup he can share? There is a lot of half-baked info on the Net, but I wasn't able to make any of it work.</p>
  
  <p>EDIT 2: Here's my .gwt.xml file, it's pretty basic:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.1//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.1/distro-source/core/src/gwt-module.dtd"&gt;
  &lt;module rename-to='whatever'&gt;
  &lt;!-- Inherit the core Web Toolkit stuff.                        --&gt;
  &lt;inherits name='com.google.gwt.user.User' /&gt;
  
  &lt;!-- Inherit the default GWT style sheet.  You can change       --&gt;
  &lt;!-- the theme of your GWT application by uncommenting          --&gt;
  &lt;!-- any one of the following lines.                            --&gt;
  &lt;inherits name='com.google.gwt.user.theme.standard.Standard' /&gt;
  &lt;!-- &lt;inherits name='com.google.gwt.user.theme.chrome.Chrome'/&gt; --&gt;
  &lt;!-- &lt;inherits name='com.google.gwt.user.theme.dark.Dark'/&gt;     --&gt;
  
  &lt;!-- Other module inherits                                      --&gt;
  
  &lt;!-- Specify the app entry point class.                         --&gt;
  &lt;entry-point class='my.gwt.client.Whatever' /&gt;
  
  &lt;!-- Lokalizacije                                               --&gt;
  &lt;extend-property name="locale" values="hr" /&gt;
  
  &lt;/module&gt;
  </code></pre>