title: configuring Play framework with Scala to use Neo4j graph db
body: <p>I'm using scala in my app, it run without problem, but if I add neo4j in the dependencies, it throws a NoSuchMethod error. I didn't even have references to any neo4j classes in my code...</p>
  
  <p>I have no problem using play framework with scala, or play framework (Java) with neo4j, just when using both together, it crash...</p>
  
  <p>and I tried both neo4j 1.4.2 and 1.5.M02 to no avail.</p>
  
  <p>thanks for any help~</p>
  
  <p>Chris</p>
  
  <p>dependencies.yml</p>
  
  <pre><code># Application dependencies
  
  require:
  - play
  - play -&gt; scala 0.9.1
  - org.neo4j -&gt; neo4j 1.4.2
  </code></pre>
  
  <p>exception details:</p>
  
  <pre><code>play.exceptions.UnexpectedException: Unexpected Error
      at play.Invoker$Invocation.onException(Invoker.java:232)
      at play.Invoker$Invocation.run(Invoker.java:273)
      at Invocation.HTTP Request(Play!)
  Caused by: java.lang.NoSuchMethodError: scala.collection.generic.GenericTraversableTemplate.flatten(Lscala/Function1;)Lscala/collection/Traversable;
      at play.scalasupport.compiler.PlayScalaCompiler$.scanFiles(ScalaCompiler.scala:18)
      at play.scalasupport.compiler.PlayScalaCompiler$$anonfun$scanFiles$1.apply(ScalaCompiler.scala:17)
      at play.scalasupport.compiler.PlayScalaCompiler$$anonfun$scanFiles$1.apply(ScalaCompiler.scala:15)
      at play.scalasupport.compiler.PlayScalaCompiler$.scanFiles(ScalaCompiler.scala:15)
      at play.scalasupport.compiler.PlayScalaCompiler$$anonfun$scanFiles$1.apply(ScalaCompiler.scala:17)
      at play.scalasupport.compiler.PlayScalaCompiler$$anonfun$scanFiles$1.apply(ScalaCompiler.scala:15)
      at play.scalasupport.compiler.PlayScalaCompiler$.scanFiles(ScalaCompiler.scala:15)
      at play.scalasupport.ScalaPlugin$$anonfun$templates$1.apply(ScalaPlugin.scala:178)
      at play.scalasupport.ScalaPlugin$$anonfun$templates$1.apply(ScalaPlugin.scala:177)
      at play.scalasupport.ScalaPlugin.templates(ScalaPlugin.scala:177)
      at play.scalasupport.ScalaPlugin.update(ScalaPlugin.scala:195)
      at play.scalasupport.ScalaPlugin.detectClassesChange(ScalaPlugin.scala:107)
      at play.plugins.PluginCollection.detectClassesChange(PluginCollection.java:358)
      at play.Play.detectChanges(Play.java:594)
      at play.Invoker$Invocation.init(Invoker.java:186)
      ... 1 more
  </code></pre>