leon / play-salat

MongoDB / Salat plugin for Play 2 [MOVED]
https://github.com/cloudinsights/play-salat
Other
201 stars 52 forks source link

Does 1.2-SNAPSHOT support Play 2.1? #45

Closed anfuerer closed 11 years ago

anfuerer commented 11 years ago

I'm using the 1.2 snapshot build

val playSalat = "se.radley" % "play-plugins-salat_2.10.0-RC1" % "1.2-SNAPSHOT"

I assumed, this snapshot build already works with Play 2.1. But I get the following exception:

play.api.PlayException: Cannot load plugin[Plugin [se.radley.plugin.salat.SalatPlugin] cannot been instantiated.]
    at play.api.WithDefaultPlugins$$anonfun$plugins$1$$anonfun$apply$9.apply(Application.scala:156) ~[play_2.10.jar:2.1.0]
    at play.api.WithDefaultPlugins$$anonfun$plugins$1$$anonfun$apply$9.apply(Application.scala:130) ~[play_2.10.jar:2.1.0]
    at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) ~[scala-library.jar:na]
    at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) ~[scala-library.jar:na]
    at scala.collection.immutable.List.foreach(List.scala:309) ~[scala-library.jar:na]
    at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) ~[scala-library.jar:na]
Caused by: java.lang.IncompatibleClassChangeError: Found interface play.api.Application, but class was expected
    at se.radley.plugin.salat.SalatPlugin.configuration$lzycompute(SalatPlugin.scala:13) ~[play-plugins-salat_2.10.0-RC1-1.2-SNAPSHOT.jar:1.2-SNAPSHOT]
    at se.radley.plugin.salat.SalatPlugin.configuration(SalatPlugin.scala:13) ~[play-plugins-salat_2.10.0-RC1-1.2-SNAPSHOT.jar:1.2-SNAPSHOT]
    at se.radley.plugin.salat.SalatPlugin.enabled(SalatPlugin.scala:123) ~[play-plugins-salat_2.10.0-RC1-1.2-SNAPSHOT.jar:1.2-SNAPSHOT]
    at play.api.WithDefaultPlugins$$anonfun$plugins$1$$anonfun$apply$9.apply(Application.scala:133) ~[play_2.10.jar:2.1.0]
    at play.api.WithDefaultPlugins$$anonfun$plugins$1$$anonfun$apply$9.apply(Application.scala:130) ~[play_2.10.jar:2.1.0]
    at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) ~[scala-library.jar:na]

Does this snapshot build not yet support Play 2.1??

anfuerer commented 11 years ago

I noticed that there is another snapshot build:

val playSalat = "se.radley" % "play-plugins-salat_2.10" % "1.2"

However, this is not in Typesafe Snapshot repo, but in another Typesafe repo. I had to add it to the resolvers:

// play-salat-plugin
resolvers += "Typesafe Repository 2" at "http://repo.typesafe.com/typesafe/repo/"

Questions:

leon commented 11 years ago

Version 1.3.0 has been released that doesn't rely on a snapshot build of salat. try it out!

anfuerer commented 11 years ago

we just updated our project to 1.3.0. thx a lot for the release