title: jackson-module-scala (play): registerModule(DefaultScalaModule): found DefaultScalaModule.type; required: databind.Module
body: <p>I am trying to un/marshall json in a play app, by using <a href="https://github.com/FasterXML/jackson-module-scala" rel="nofollow">jackson-module-scala</a> and their example:</p>
  
  <pre><code>val mapper = new ObjectMapper()
  mapper.registerModule(DefaultScalaModule)
  </code></pre>
  
  <p>I included these libraries in <code>Build.scala</code></p>
  
  <pre><code>"com.fasterxml" % "jackson-module-scala" % "1.9.3",
  "com.fasterxml.jackson.core" % "jackson-databind" % "2.3.0",
  </code></pre>
  
  <p>and imported:</p>
  
  <pre><code>import com.fasterxml.jackson.databind.ObjectMapper
  import com.fasterxml.jackson.module.scala.DefaultScalaModule
  </code></pre>
  
  <p>However, when I run the Play App, I get the following error:</p>
  
  <pre><code>[error]  found   : com.fasterxml.jackson.module.scala.DefaultScalaModule.type
  [error]  required: com.fasterxml.jackson.databind.Module
  [error]     mapper.registerModule(DefaultScalaModule)
  
  
  play.PlayExceptions$CompilationException: Compilation error[type mismatch;
   found   : com.fasterxml.jackson.module.scala.DefaultScalaModule.type
   required: com.fasterxml.jackson.databind.Module]
      at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14$$anonfun$apply$16.apply(PlayReloader.scala:304) ~[na:na]
      at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14$$anonfun$apply$16.apply(PlayReloader.scala:304) ~[na:na]
      at scala.Option.map(Option.scala:145) ~[scala-library-2.10.3.jar:na]
      at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14.apply(PlayReloader.scala:304) ~[na:na]
      at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14.apply(PlayReloader.scala:298) ~[na:na]
      at scala.Option.map(Option.scala:145) ~[scala-library-2.10.3.jar:na]
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>