Silhouette 3 & Play 2.5

133 views
Skip to first unread message

Aaron Patzer

unread,
May 19, 2016, 3:29:45 PM5/19/16
to Silhouette
I'm trying to integrate Silhoette, Angular & Slick into one project, merging https://github.com/mohiva/play-silhouette-angular-seed/tree/3.0.0 and https://github.com/sbrunk/play-silhouette-slick-seed

With Silhouette 3, during runtime, I get:

Exception in thread "ForkJoinPool-1-worker-4" java.lang.NoSuchMethodError: play.api.libs.functional.syntax.package$.functionalCanBuildApplicative(Lplay/api/libs/functional/Applicative;)Lplay/api/libs/functional/FunctionalCanBuild;
 at com
.mohiva.play.silhouette.api.LoginInfo$.<init>(LoginInfo.scala:38)
 at com
.mohiva.play.silhouette.api.LoginInfo$.<clinit>(LoginInfo.scala)
 at com
.mohiva.play.silhouette.impl.authenticators.JWTAuthenticator$.serialize(JWTAuthenticator.scala:93)


It seems not to like the like 
implicit val jsonFormat = Json.format[LoginInfo]

 This could be related to a Play 2.5 issue which also seems to have issues with Json: https://github.com/pauldijou/jwt-scala/issues/15

Aaron Patzer

unread,
May 19, 2016, 3:51:58 PM5/19/16
to Silhouette
It's definitely related to this change in class/method location from Play 2.4 => 2.5 https://github.com/playframework/playframework/commit/f6935a43a67003b2fd05f29f5f2fd5c6ac4a1002

Suggestions?

Christian Kaps

unread,
May 20, 2016, 1:47:08 AM5/20/16
to Silhouette
Hello Aaron,

Silhouette 3 isn't compatible with Play 2.5. If you use Play 2.5 then you must use the beta version of Silhouette 4. It's planned to release a RC1 of Silhouette in the next few days.

Best regards,
Christian
Reply all
Reply to author
Forward
0 new messages