title: APPLICATION_JSON cannot be resolved or is not a field
body: <p>I have a problem producing JSON in my application.</p>
  
  <p>I'm trying a tutorial about <a href="https://www.youtube.com/watch?v=F201AN5UEg0" rel="nofollow">Consuming Java Restful Web Service with AngularJS</a>.
  I've created a dynamic web project as my RESTful server and then added the following libraries:</p>
  
  <ul>
  <li>asm-3.3.1.jar </li>
  <li>jackson-core-asl-1.9.9.jar  </li>
  <li>jackson-jaxrs-1.9.9.jar   </li>
  <li>jackson-mapper-asl-1.9.9.jar  </li>
  <li>jackson-xc-1.9.9.jar   </li>
  <li>jersey-bundle-1.8.jar  </li>
  <li>jersey-bundle-1.9.jar  </li>
  <li>jersey-client-1.9.jar  </li>
  <li>jersey-core-1.9.jar  </li>
  <li>jersey-json-1.9.jar   </li>
  <li>jersey-media-json-jettison-2.4.jar  </li>
  <li>jersey-server-1.9.1.jar   </li>
  <li>jersey-servlet-1.12.jar  </li>
  <li>jettison-1.3.3.jar  </li>
  <li>jsr311-api-1.1.1.jar</li>
  </ul>
  
  <p>Here is the service :</p>
  
  <pre><code>package ws;
  
  import java.awt.PageAttributes.MediaType;
  import java.util.*;
  
  import javax.ws.rs.*;
  import javax.ws.rs.core.*;
  
  import entities.Prospect;
  
  @Path("prospect")
  public class ProspectRestful {
  
      @GET
      @Path("findall")
      @Produces(MediaType.APPLICATION_JSON)
      public List&lt;Prospect&gt; findAll(){
  
          List&lt;Prospect&gt; result = new ArrayList&lt;Prospect&gt;();
  
          result.add(new Prospect(35, "Name 35", "last35"));
          result.add(new Prospect(36, "Name 36", "last36"));
  
  
          return result;
      }
  }
  </code></pre>
  
  <p>But I'm getting this error: </p>
  
  <blockquote>
    <p>APPLICATION_JSON cannot be resolved or is not a field.</p>
  </blockquote>
  
  <p>I've seen in another question that jersey-media-json-jettison-2.4.jar should be there so I added it but no sign.</p>
  
  <p>I'm sure I'm not using a Maven project, in the same tutorial they didn't use Maven either.</p>