title: Why does jersey have no error log when the status is 500?
body: <p>This is my web.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;servlet&gt;
    &lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt;
    &lt;servlet-class&gt;
      org.glassfish.jersey.servlet.ServletContainer
    &lt;/servlet-class&gt;
    &lt;init-param&gt;
      &lt;param-name&gt;jersey.config.server.provider.packages&lt;/param-name&gt;
      &lt;param-value&gt;rest&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;init-param&gt;
      &lt;param-name&gt;jersey.config.server.provider.classnames&lt;/param-name&gt;
      &lt;param-value&gt;org.glassfish.jersey.filter.LoggingFilter&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  </code></pre>
  
  <p>And this is my resource class:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Path("/main")
  public class MainResource {
  
      @XmlRootElement
      public class Planet {
          public int id;
          public String name;
          public double radius;
      }
  
      @GET
      @Produces(MediaType.APPLICATION_XML)
      public Planet getPlanet() {
          final Planet planet = new Planet();
  
          planet.id = 1;
          planet.name = "Earth";
          planet.radius = 1.0;
  
          return planet;
      }
  }
  </code></pre>
  
  <p>And when I run the tomcat server, the log is like this:</p>
  
  <pre class="lang-text prettyprint-override"><code>09-Jan-2015 13:19:10.501 INFO [http-apr-8080-exec-8] org.glassfish.jersey.filter.LoggingFilter.log 1 * Server has received a request on thread http-apr-8080-exec-8
  1 &gt; GET http://localhost:8080/rest/main
  1 &gt; accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
  1 &gt; accept-encoding: gzip, deflate, sdch
  1 &gt; accept-language: en,zh-CN;q=0.8,zh;q=0.6
  1 &gt; connection: keep-alive
  1 &gt; cookie: JSESSIONID=69F79D567E7ECA27A129C477B91C7758
  1 &gt; host: localhost:8080
  1 &gt; user-agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
  
  09-Jan-2015 13:19:10.597 INFO [http-apr-8080-exec-8] org.glassfish.jersey.filter.LoggingFilter.log 1 * Server responded with a response on thread http-apr-8080-exec-8
  1 &lt; 200
  1 &lt; Content-Type: application/xml
  
  09-Jan-2015 13:19:10.794 INFO [http-apr-8080-exec-8] org.glassfish.jersey.filter.LoggingFilter.log 2 * Server responded with a response on thread http-apr-8080-exec-8
  2 &lt; 500
  </code></pre>
  
  <p>I wonder why it shows 500 error, but I cannot find any error log about the exception stack. </p>
  
  <p>Please help me.</p>