title: GWT with -noserver
body: <p>I'm making a GWT project that uses PHP to connect to a DB2 database. When I compile the project and deploy it to the server (copy the contents of the WAR directory over), it works fine, obviously in hosted mode I run into the SOP issue since GWT is on port 8888 while the php script is running on port 80.</p>
  
  <p>I'm trying to get the -noserver option to work but I must be missing something.. I went back and created the basic sample app from the command line (webApplicationCreator -out /home/mike/gwt/sample1)
  I edited the build.xml to include the -noserver and -port 80 arguements for devmode. I want my app to be hosted at localhost/sample1 so I edited the -startupUrl to the whole URL I want to use: <a href="http://localhost/sample1/sample1.html" rel="nofollow noreferrer">http://localhost/sample1/sample1.html</a></p>
  
  <p>I compiled (ant), copied over the sample1.html, sample1.css from war to the webserver sample1 directory, and the (md5).gwt.rpc, clear.cache.gif, sample1.nocache.js and hosted.html files from the war/sample1 to sample1/sample1 directory as described in the GWT documentation (no history.html file was created).
  I then run ant devmode from the project directory (/home/mike/gwt/sample1)
  I can get to the sample1.html page, but when I click the button to send the name to the server it returns with</p>
  
  <blockquote>
    <p>Remote Procedure Call - Failure</p>
    
    <p>Server replies:
    An error occurred while attempting to contact the server. Please check your network connection and try again.</p>
  </blockquote>
  
  <p>I turned on firebug and it's returning a 404 for <a href="http://localhost/sample1/sample1/greet" rel="nofollow noreferrer">http://localhost/sample1/sample1/greet</a>. This is where I'm stuck.. this file obviously doesn't exist on my webserver.. but why? Isn't this something that is supposed to be getting compiled by GWT?</p>
  
  <p>Can anyone give me a hand? Thanks!</p>