title: Deserialization issues with Joda Time / Jackson 2 / Spring - Can not instantiate value of type [simple type, class org.joda.time.DateTime]
body: <p>I'm getting an exception when attempting to deserialize an JSON string which contains date strings to a POJO using Joda.</p>
  
  <p>I'm using Jackson2 with Spring and Robospice.</p>
  
  <p>I'm getting the following exception:</p>
  
  <blockquote>
    <p>Could not read JSON: Can not instantiate value of type [simple type,
    class org.joda.time.DateTime] from String value
    ('2014-07-25T00:00:00'); no single-String constructor/factory method</p>
  </blockquote>
  
  <p>Here's the code I have at present:</p>
  
  <pre><code>MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter 
                              = new MappingJackson2HttpMessageConverter();
  
  mappingJackson2HttpMessageConverter.getObjectMapper().registerModule(new JodaModule());
  msgConverters.add(mappingJackson2HttpMessageConverter);
  
  restTemplate.setMessageConverters(msgConverters);
  HttpEntity&lt;?&gt; httpEntity = new HttpEntity&lt;Object&gt;(headers);
  
  final ResponseEntity&lt;HolidayList&gt; responseEntity 
              = restTemplate.exchange(url, HttpMethod.GET, httpEntity,HolidayList.class);
  </code></pre>
  
  <p>The POJO fields are defined like so:</p>
  
  <pre><code>private DateTime departureDate;
  </code></pre>
  
  <p>I had this working in Jackson1... but can't seem to get it working in Jackson2.</p>