title: Running local client and service on tomcat
body: <p>I'm trying to set up a client and a separate service to handle the requests locally with eclipse.  I have two WARS deployed to my Tomcat server.  My issue is that I am trying to link to an API in the service from the client and I cannot figure out how.  I tried putting in the full path as well as just the API but both autofill with the client's package (i.e. localhost/{clientName}/{API} rather than localhost/{serviceName}/{API}.  Any idea how to resolve this?  Code is below</p>
  
  <pre><code>&lt;input type="submit" value="Login" onclick="location.href='http://localhost/messagingservice/login'"/&gt;
  
  
  @RestController
  public class LoginServlet {
  
      @RequestMapping(value="/login", method=RequestMethod.POST)
      public boolean login(String login, String password) {
          System.out.println("Hit login mapping");
          return true;
      }
  }
  </code></pre>