title: Whenever I am adding ContentNegotiatingViewResolver bean, All my other jsp pages stops working
body: <p>Whenever I am adding ContentNegotiatingViewResolver bean, All my other jsp pages stops working, I get this error - HTTP Status 500 - Servlet.init() for servlet fitTrackerServlet threw exception</p>
  
  <p>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.view.ContentNegotiatingViewResolver#0' defined in ServletContext resource [/WEB-INF/config/servlet-config.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonGenerator</p>
  
  <p>This is my servlet-config.xml</p>
  
  <p></p>
  
  <pre><code>&lt;bean class="org.springframework.web.servlet.view.BeanNameViewResolver" p:order="0"/&gt;
  
  
  &lt;bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver"&gt;
      &lt;property name="order" value="1"/&gt;
      &lt;property name="contentNegotiationManager"&gt;
          &lt;bean class="org.springframework.web.accept.ContentNegotiationManager"&gt;
              &lt;constructor-arg&gt;
                  &lt;bean class="org.springframework.web.accept.PathExtensionContentNegotiationStrategy"&gt;
                      &lt;constructor-arg&gt;
                          &lt;map&gt;
                              &lt;entry key="json" value="application/json"/&gt;
                              &lt;entry key="xml" value="application/xml"/&gt;
                          &lt;/map&gt;
                      &lt;/constructor-arg&gt;
                  &lt;/bean&gt;
              &lt;/constructor-arg&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  
      &lt;property name="defaultViews"&gt;
          &lt;list&gt;
              &lt;bean class="org.springframework.web.servlet.view.json.MappingJackson2JsonView"/&gt;
              &lt;bean class="org.springframework.web.servlet.view.xml.MarshallingView"&gt;
                  &lt;constructor-arg&gt;
                      &lt;bean class="org.springframework.oxm.xstream.XStreamMarshaller"&gt;
                          &lt;property name="autodetectAnnotations" value="true"/&gt; 
                      &lt;/bean&gt;
                  &lt;/constructor-arg&gt;
              &lt;/bean&gt;         
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt; 
  </code></pre>