这是indexloc提供的服务,不要输入任何密码
Skip to content

Play 3.0.0 migration: java.lang.NoSuchMethodError: play.core.PlayVersion$.akkaVersion() #13272

Answered by mkurz
sumit-ff asked this question in Q&A
Discussion options

You must be logged in to vote
  • Why is Play still referencing PlayAkkaHttpServer even though I'm using Play 3.0.0?

Because you use play-ebean 7.x - which is for the Akka line. Just switch to play-ebean 8.1.0 and it should work. (Even better play-ebean 8.3.0 as this is the latest version)

  • Is there any hidden dependency pulling in Akka HTTP?

see above.

  • Do I need to explicitly add the play-pekko-http-server module in libraryDependencies?

No.

  • How can I verify that Akka has been completely removed from the classpath?
sbt 'show runtime:fullClasspath'
# or
sbt dependencyTree

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sumit-ff
Comment options

Answer selected by sumit-ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants