java.lang.NoSuchMethodError: play.api.mvc.EssentialFilter.$init$(Lplay/api/mvc/EssentialFilter;)V

40 views
Skip to first unread message

Pravin Karne

unread,
Apr 28, 2019, 3:01:35 PM4/28/19
to Play Framework [deprecated]
Hi,
I am trying to integrate OKTA with Play application. 
For this I have added following line in application.conf
play.filters.enabled += org.pac4j.play.filters.SecurityFilter

in build.sbt, I have - 

scalaVersion := "2.11.12"
lazy val playPac4jVersion = "4.0.0"
lazy val pac4jVersion = "2.1.0"
lazy val playVersion = "2.6.6"


But it is giving error - 

An exception or error caused a run to abort: play.api.mvc.EssentialFilter.$init$(Lplay/api/mvc/EssentialFilter;)V 
java.lang.NoSuchMethodError: play.api.mvc.EssentialFilter.$init$(Lplay/api/mvc/EssentialFilter;)V
at org.pac4j.play.filters.SecurityFilter.<init>(SecurityFilter.scala:64)

Is there any way to resolves this error without chaning scala version to 2.12.x

Thanks in adavance.






Aidar Uldanov

unread,
Apr 30, 2019, 10:59:50 AM4/30/19
to Play Framework [deprecated]
I think using right play-pac4j version will fix the issue. If you use playVersion = "2.6.6", you should chose appropriate play-pac4j version. Look at compatibility table https://github.com/pac4j/play-pac4j 
Try to switch to 3.3 version.

Abdelali Tazi chibi

unread,
May 5, 2019, 12:46:45 PM5/5/19
to play-fr...@googlegroups.com
Hello,

Im working on java play framework, sorry! but i would suggest you to download the compatible version of EssentialFilter.

Abdelali TAZI CHIBI
SOFTWARE ENGINEER
                    Europe / North Africa

Tél : +212 6 14 66 08 61
E-mail : abdelali...@gmail.com



--
Please join our new forum at https://discuss.playframework.com!
The play-framework Google Group will soon be put into read-only mode.
For details, see https://blog.playframework.com/introducing-discuss-playframework-com/.
---
You received this message because you are subscribed to the Google Groups "Play Framework [deprecated]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/dfabd219-dfb7-45bb-9613-38e4a11ce51e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages