title: jackson throws IllegalAccessError even with the same versions
body: <p>I'm developing a software with jackson, but totally get stuck... When I run the  spring-boot program with <code>java -jar &lt;MY_APPLICATION&gt;.jar</code> command, I got the following error:</p>
  
  <pre><code>...
  Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.fasterxml.jackson.databind.ObjectMapper]: Factory method 'jacksonObjectMapper' threw exception; nested exception is
  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
          at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
          at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
          ... 84 more
  Caused by: 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
          at com.fasterxml.jackson.datatype.jsr310.JavaTimeModule.&lt;init&gt;(JavaTimeModule.java:159)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
          at java.lang.Class.newInstance(Class.java:442)
          at org.springframework.beans.BeanUtils.instantiate(BeanUtils.java:78)
          at org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.registerWellKnownModulesIfAvailable(Jackson2ObjectMapperBuilder.java:719)
          at org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.configure(Jackson2ObjectMapperBuilder.java:572)
          at org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.build(Jackson2ObjectMapperBuilder.java:554)
          at org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration.jacksonObjectMapper(JacksonAutoConfiguration.java:87)
          at org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration$$EnhancerBySpringCGLIB$$2434a0bb.CGLIB$jacksonObjectMapper$0(&lt;generated&gt;)
          at org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration$$EnhancerBySpringCGLIB$$2434a0bb$$FastClassBySpringCGLIB$$d685921f.invoke(&lt;generated&gt;)
          at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
          at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
          at org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration$$EnhancerBySpringCGLIB$$2434a0bb.jacksonObjectMapper(&lt;generated&gt;)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
          ... 85 more
  </code></pre>
  
  <p>There are more error messages above the error, but I think the important message is <code>java.lang.IllegalAccessError: tried to access method com.fasterxml.jackson.databind.ser.std.StdSerializer.&lt;init&gt;(Ljava/lang/Class;)</code>, which I know it cannot happen generally.</p>
  
  <p>I confirmed that the jackson modules are in the same version(2.6.5 which comes from spring-boot's dependency), and codehaus's  jackson is not included:</p>
  
  <pre><code>$ mvn dependency:tree -Dverbose -Dincluces=com.fasterxml.jackson.core | grep -v omitted
  
  ...
  
  [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ patriot-fdc-web ---
  [INFO] &lt;MY_GROUP&gt;:&lt;MY_APPLICATION_A&gt;:war:0.3.9-SNAPSHOT
  [INFO] +- &lt;MY_GROUP&gt;:&lt;MY_APPLICATION_B&gt;:jar:0.3.9-SNAPSHOT:compile
  [INFO] |  \- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.6.5:compile
  [INFO] |     +- com.fasterxml.jackson.core:jackson-core:jar:2.6.5:compile
  [INFO] \- org.springframework.boot:spring-boot-starter-web:jar:1.3.3.RELEASE:compile
  [INFO]    \- com.fasterxml.jackson.core:jackson-databind:jar:2.6.5:compile (version managed from 2.4.2)
  [INFO]       +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.5:compile (version managed from 2.6.0)
  </code></pre>
  
  <p>Can anybody encounter such a problem? Anyone can suggest any solution or possibility for the error? Thank you in advance.</p>