title: Spring MVC and JSON, Jackson class not found exception
body: <p>I cant get Spring's JSON support working. In my spring-servlet.xml file i have included following lines:</p>
  
  <pre><code>&lt;mvc:annotation-driven/&gt;
  &lt;context:component-scan base-package="my.packagename.here" /&gt;
  &lt;context:annotation-config /&gt;
  
  &lt;bean id="viewResolver"
      class="org.springframework.web.servlet.view.InternalResourceViewResolver"
      p:prefix="/WEB-INF/jsp/" p:suffix=".jsp" /&gt;
  
  &lt;bean id="jacksonMessageConverter"
      class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter"/&gt;
  </code></pre>
  
  <p>I have also downloaded jackson libraries and added them to my eclipse project and also to WEB-INF/lib folder. When sending request to controller with jQuery getJSON method i get following errors:</p>
  
  <pre><code>javax.servlet.ServletException: Servlet.init() for servlet dispatcher threw exception
  java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonProcessingException
  java.lang.ClassNotFoundException: org.codehaus.jackson.JsonProcessingException
  </code></pre>
  
  <p>What do you think is the problem. I'm guessing it has something to do with my <code>spring-servlet.xml</code> file. I can paste entire error log, if you need.</p>