title: GWT Servlet error com.google.gwt.user.client.rpc .StatusCodeException: 404 on Tomcat server
body: <p>1) Installed GWT and Eclipse on Mac</p>
  
  <p>2) Created a GWT project (2.4) with generated code called Hello</p>
  
  <p>3) Ran the project on local computer (in dev mode) and it works as expected.</p>
  
  <p>4) Compile the project and upload the war directory to my account hosted by serversanddomains.com</p>
  
  <ul>
  <li>The production front end works fine, but when I try the RPC request I get the following error.</li>
  </ul>
  
  <p>com.google.gwt.user.client.rpc.StatusCodeException: 404 
  Not Found 
  The requested URL /hello/greet was not found on this server. </p>
  
  <p>I tried compiling with different versions of java as suggest by <a href="https://stackoverflow.com/questions/5354802/how-to-use-gwt-rpc-to-tomcat-server">How to use GWT - RPC to Tomcat server</a></p>
  
  <p>Serversanddomains.com currently runs Tomcat and java 1.6.0_29</p>
  
  <p>I asked to see the error log and they responded 
  Here is the error we are seeing in the error log:
  File does not exist: /home/username/public_html/hello/greet, referer: <a href="http://mydomain.com/Hello.html" rel="nofollow noreferrer">http://mydomain.com/Hello.html</a>
  And in the /usr/local/jakarta/tomcat/logs/catalina.out log file no reports of anything.</p>
  
  <p>My web.xml file is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  version="2.5"
  xmlns="http://java.sun.com/xml/ns/javaee"&gt;
  
  
    &lt;!-- Servlets --&gt;
    &lt;servlet&gt;
      &lt;servlet-name&gt;greetServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.hello.server.GreetingServiceImpl&lt;/servlet-class&gt;
    &lt;/servlet&gt;
  
    &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;greetServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/hello/greet&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  
    &lt;!-- Default page to serve --&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;Hello.html&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>Any suggests would be welcome.</p>
  
  <p>Cheers</p>