title: REST Service returns HTTP 204 (Tomcat/Linux)
body: <p>I have a problem running my code on a linux distribution (Raspbian, Tomcat 7). The problem doesn't appear in the test environment under Windows/Tomcat 7/Eclipse:</p>
  
  <p>My webservice just returns HTTP 204 and nothing else. The log doesn't contain any indication that there was an error during the request. It should, as it does in the test environment, respond with a json.</p>
  
  <p>web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
  version="3.0"&gt;
  &lt;display-name&gt;***&lt;/display-name&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;**.useravailability.UserAvailabilityServletContextListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;REST Service&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/REST/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;REST Service&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.sun.jersey.server.impl.container.servlet.ServletAdaptor&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;com.sun.jersey.api.json.POJOMappingFeature&lt;/param-name&gt;
          &lt;param-value&gt;true&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>usersService.xml</p>
  
  <pre><code>package **.webservice;
  
  import java.util.ArrayList;
  
  import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.Produces;
  import com.google.gson.Gson;
  
  import **.model.AccessManager;
  
  @Path("/usersService")
  public class UsersService {
  @GET
  @Produces("application/json")
  public String getUser() {       
      String user = null;
      ArrayList&lt;String&gt; userList = new ArrayList&lt;String&gt;();
      try {       
          userList = new AccessManager().getUser();
          Gson gson = new Gson();
          user = gson.toJson(userList);           
      } catch (Exception e) {
          e.printStackTrace();
      }
      return user;
  }
  
  
  }
  </code></pre>
  
  <p>What am I missing? And why does it work in the test environment?
  Thank you!</p>