title: Serialization of Java 8 ZonedDateTime with Jackson and JavaTimeModule
body: <p>I'm trying to use Jackson to serialize and deserialize objects (marshall/unmarshall) from and to JSON. Some of these objects have Java 8 LocalDate and ZonedDateTime. I've read here that the best option is to use <a href="https://github.com/FasterXML/jackson-datatype-jsr310" rel="nofollow noreferrer" title="jackson-datatype-jsr310">jackson-datatype-jsr310</a></p>
  
  <p><a href="https://stackoverflow.com/questions/27952472/serialize-deserialize-java-8-java-time-with-jackson-json-mapper">serialize/deserialize java 8 java.time with Jackson JSON mapper</a></p>
  
  <p>However, when I try to use this:</p>
  
  <pre><code>ObjectMapper mapper = new ObjectMapper();
  mapper.registerModule(new JavaTimeModule());
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>java.lang.IllegalAccessError: tried to access method com.fasterxml.jackson.databind.ser.std.StdSerializer.&lt;init&gt;(Ljava/lang/Class;)V from class com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
  </code></pre>
  
  <p>Any clue? I'm using Jackson 2.6.0, jackson-datatype-jsr310 2.6.0 and am deploying to Tomcat 8.</p>
  
  <p>Thanks and best regards</p>