joscha / play-authenticate

An authentication plugin for Play Framework 2.x (Java)
http://joscha.github.com/play-authenticate/
Other
807 stars 366 forks source link

Error building sample with Play 2.2.1 #134

Closed acmeguy closed 10 years ago

acmeguy commented 10 years ago

Hi,

I'm trying to run the sample usage application with Play 2.2.1 and get the following error:

error sbt.ResolveException: unresolved dependency: com.typesafe.play#play-cache_2.10;2.2.1: configuration not found in com.typesafe.play#play-cache_2.10;2.2.1: 'master'. It was required from com.feth#play-authenticate_2.10;0.5.2-SNAPSHOT compile

Can you please tell me what I'm doing wrong?

Regards, -Stefan

joscha commented 10 years ago

I saw this before after upgrading from Play 2.1 to 2.2 - for me it had to do something with the jars/compiled classes in my path and a wrong Scala version.

acmeguy commented 10 years ago

Can you recall what you did to fix it?

acmeguy commented 10 years ago

is there an issue with Java 1.7 og Scala 2.10 ?

acmeguy commented 10 years ago

Can you tell me what Java, Scala, Play version works for you?

acmeguy commented 10 years ago

There is nothing here!: http://joscha.github.com/play-easymail/repo/snapshots/

Only older versions here: http://joscha.github.com/play-easymail/repo/

joscha commented 10 years ago

I have got Java 1.6 and the standard play 2.1.x download. The play-easymail repo has only an index.html under /repo/ not under snapshots and releases - the files are still there, though. Your problem is with play cache, have a look if this helps you: https://github.com/ionflamme/play-authenticate/commit/2db528dc75787bb60cbb7688b20bf20aa11a1b51 (the exclude("org.scala-stm", "scala-stm_2.10.0") part)

iominh commented 10 years ago

I'm running Java 1.7.0_45, play 2.2.1, Scala 2.10.2.

I got the same error but was able to successfully run and build by going back a few commits (b33eae8 worked for me). It looks like everything broke when the version was bumped to 0.5.2-snapshot or the Github oauth plugin was added.

mgeeforce commented 10 years ago

I am running play 2.2.1 built with Scala 2.10.2 (running Java 1.6.0_65). I changed plugins.sbt

// Use the Play sbt plugin for Play projects addSbtPlugin("com.typesafe.play" % "sbt-plugin" % Option(System.getProperty("play.version")).getOrElse("2.2.0"))

to

// Use the Play sbt plugin for Play projects addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1")

and it compiled properly.

chaschev commented 10 years ago

Forcing the version didn't work for me, needed to downgrade to 2.2.0. It compiles after this.

joscha commented 10 years ago

@chaschev I am seeing the same now - recompiling didn't help - it seems as if the cache dependency is the problem, however it seems to be in the repo...

chaschev commented 10 years ago

@joscha I don't have a slightest idea of what that could be. Had been hairpulling for an hour or so and then after downgrade it magically worked.

joscha commented 10 years ago

I looked into this more - I think it's either the deadbolt2 dependency (@schaloner, do you know if deadbolt2 works with 2.2.1?) or the typesafe mailer that causes this (@jroper, do you know if the typesafe mailer works with 2.2.1?)

joscha commented 10 years ago

It seems to work when I build via sbt instead of using the play binary...

jroper commented 10 years ago

Version 2.2.0 of the mailer plugin should work with all 2.2.x versions of Play.

joscha commented 10 years ago

can anybody confirm it works with sbt but not using the play binary?

joscha commented 10 years ago

@chaschev @acmeguy @minhongrails @mgeeforce changing the dep for deadbolt seems to fix the problem for me, can you please test this:

exchange

"be.objectify" %% "deadbolt-java" % "2.2-RC2",

with

"be.objectify" %% "deadbolt-java" % "2.2-RC2" exclude("com.typesafe.play", "play-cache_2.10"),
chaschev commented 10 years ago

@joscha yes, worked for me