title: Spring-boot jackson error on Maven with war file, but not jar file with com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
body: <p>I have a very weird problem with Spring-boot 1.5.2 build with Maven to war package which it has error with Jackson dependency, only on Ubuntu 16.04 as I'm using another Centos 7 and no problem with starting application as war or jar file.</p>
  
  <p>After building with Maven to jar or war, I can run built package with</p>
  
  <pre><code>javar -jar target/project.war (or project.jar) 
  </code></pre>
  
  <p>and Embedded Tomcat will start. Also the war package could be deployed to an external Tomcat in webapps directory of Centos 7. For Ubuntu 16.04, I could only run .jar file with Tomcat embedded but not war file with Tomcat Embedded/External.</p>
  
  <pre><code>Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.filter.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
      at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
      ... 26 more
  Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z
      at com.fasterxml.jackson.databind.ObjectMapper.&lt;init&gt;(ObjectMapper.java:564)
      at com.fasterxml.jackson.databind.ObjectMapper.&lt;init&gt;(ObjectMapper.java:474)
      at org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.build(Jackson2ObjectMapperBuilder.java:588)
      at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.&lt;init&gt;(MappingJackson2HttpMessageConverter.java:57)
      at org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter.&lt;init&gt;(AllEncompassingFormHttpMessageConverter.java:61)
      at org.springframework.web.filter.HttpPutFormContentFilter.&lt;init&gt;(HttpPutFormContentFilter.java:63)
      at org.springframework.boot.web.filter.OrderedHttpPutFormContentFilter.&lt;init&gt;(OrderedHttpPutFormContentFilter.java:29)
      at org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.httpPutFormContentFilter(WebMvcAutoConfiguration.java:142)
  </code></pre>
  
  <p>Here is the pom file <a href="https://pastebin.com/13MwTm89" rel="nofollow noreferrer">https://pastebin.com/13MwTm89</a> which I only add another dependency from Jackson for deserializing XML to object.</p>
  
  <pre><code> &lt;dependency&gt;
      &lt;groupId&gt;com.fasterxml.jackson.dataformat&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-dataformat-xml&lt;/artifactId&gt;
      &lt;version&gt;2.8.7&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>here is the full dependencies for Jackson</p>
  
  <pre><code>mvn dependency:tree | grep 'jackson' 
  [INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.8.7:compile
  [INFO] |  +- com.fasterxml.jackson.core:jackson-core:jar:2.8.7:compile
  [INFO] |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.8.0:compile
  [INFO] |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.8.7:compile
  [INFO] |  +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.8.7:compile
  </code></pre>