Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Does 1.2-SNAPSHOT support Play 2.1? #45

Closed
anfuerer opened this issue Apr 25, 2013 · 3 comments
Closed

Does 1.2-SNAPSHOT support Play 2.1? #45

anfuerer opened this issue Apr 25, 2013 · 3 comments

Comments

@anfuerer
Copy link

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
Copy link
Author

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
Copy link
Owner

leon commented Aug 26, 2013

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

@leon leon closed this as completed Aug 26, 2013
@anfuerer
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants