title: How to register RPC service as servlet in web.xml
body: <p>I have created RPC service in my existing application using the RPC tutorial mentioned on the page 
  <a href="http://www.gwtproject.org/doc/latest/tutorial/RPC.html#services" rel="nofollow noreferrer">http://www.gwtproject.org/doc/latest/tutorial/RPC.html#services</a>. I am still getting the 404 no service found exception. Here is what I have done. </p>
  
  <ol>
  <li><p>Created the service interface on client side.</p>
  
  <pre><code>@RemoteServiceRelativePath("searchportoutorder")
  public interface SearchPortOutOrderService extends RemoteService {
          List&lt;SearchPortOutOrderModel&gt; fetchMoreRecords();
  }
  </code></pre></li>
  <li><p>Created the asynce interface on client. </p>
  
  <pre><code>public interface SearchPortOutOrderServiceAsync {
  
      void fetchMoreRecords(AsyncCallback&lt;List&lt;SearchPortOutOrderModel&gt;&gt; async);
  }
  </code></pre></li>
  <li><p>Create the service impl under package server. </p>
  
  <pre><code>public class SearchPortOutOrderServiceImpl extends RemoteServiceServlet implements SearchPortOutOrderService {
      List&lt;SearchPortOutOrderModel&gt; models = new ArrayList&lt;SearchPortOutOrderModel&gt;();
  
      private void initializeModel() {
              for(int i=0;i&lt;10000;i++){
                      SearchPortOutOrderModel model = new SearchPortOutOrderModel();
                      model.setOrderId("1234-132131-12312-12312");
                      model.setCustomer("ashish testing");
                      model.setOrderDate("2014-12-25");
                      model.setLastUpdated("2014-02-15");
                      model.setStatus("Completed");
                      models.add(model);
              }
      }
  
      @Override public List&lt;SearchPortOutOrderModel&gt; fetchMoreRecords() {
              initializeModel();
              return models;
      }
  </code></pre></li>
  <li><p>Update the web.xml file to involve the servlet. </p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;searchPortOutOrderService&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.inetwork.gwt.client.searchportoutorder.server.SearchPortOutOrderServiceImpl&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;searchPortOutOrderService&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/report/searchportoutorder&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre></li>
  </ol>
  
  <p>I am still getting 404 exception saying that the service is not found.Do I need to modified anything else in my code like .gwt.xml file. </p>