Error while generating json content using jersy
<p>I'm working on jersy project when a lunch tomcat server i get this exception : </p>

<p>MessageBodyWriter not found for media type=application/json</p>

<p>This is my code : </p>

<pre><code> @Path("/activities") 
public class ActivityResource {

  private ActivityRepository activityRepository = new ActivityRepositoryStub();


   @GET
   @Produces(MediaType.APPLICATION_XML)
   public List&lt;Activity&gt; getAllActivities(){

    return activityRepository.findAllActivities();


}
</code></pre>