title: Jersey-Json dependency : error on ConversionServiceAwareObjectMapper.java
body: <p>I am deploying Jersey in Spring-MVC and trying to produce json output format. I have this annotation <code>@Produces("application/json")</code> in MyResource.java. First, I got an error:</p>
  
  <blockquote>
    <p>SEVERE: A message body writer for Java class edu.ucdavis.iet.APerson, and Java type class
    edu.ucdavis.iet.APerson, and MIME media type application/json was not found</p>
  </blockquote>
  
  <p>I added jersey-json dependency to pom.xml:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-json&lt;/artifactId&gt;
      &lt;version&gt;1.5&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The error is gone, but it marks another error on:
  src/main/java/org/springframework/samples/mvc/ajax/json/ConversionServiceAwareObjectMapper.java. The errors are :</p>
  
  <blockquote>
    <p>The type org.codeHaus.jackson. 
    Versioned cannot be resolved. It is 
    indirectly referenced from required 
    .class file</p>
    
    <p>The hierarchy of the type
    ConversionServiceAwareObjectMapper.java.
    is inconsistent.</p>
  </blockquote>
  
  <p>I have searched many docs and tried to modify the configure files, but none is working.  Any suggestion?</p>
  
  <p>Thanks</p>