title: Jersey not able to serialize annotations?
body: <p>Serializing an annotation with jersey always fails with an unknown error.</p>
  
  <p>Minimal example is:</p>
  
  <p><strong>Jersey ressource</strong></p>
  
  <pre><code>@TestAnno( id = "TestID" )
  @Path( "/test" )
  public class TestResource
  {
     @GET
     @Produces( MediaType.APPLICATION_JSON )
     public TestAnno list() throws JsonGenerationException, JsonMappingException, IOException
     {
        final TestAnno ta = getClass().getAnnotation( TestAnno.class );
        return ta;
     }
  }
  </code></pre>
  
  <p><strong>Annotation</strong></p>
  
  <pre><code>@Retention( RetentionPolicy.RUNTIME )
  @Target( ElementType.TYPE )
  public @interface TestAnno
  {
     @JsonProperty( "id" )
     String id();
  }
  </code></pre>
  
  <p>The call always returns </p>
  
  <pre><code>HTTP ERROR: 500
  Problem accessing /schema. Reason:
  Server Error
  </code></pre>
  
  <p>The debug log is empty, there are no exceptions or any other information about the error. What is the point where jersey fails?</p>