play工程中配置AkkA,无法启动监听

jinfu 发布于 2014/10/23 10:56
阅读 3K+
收藏 0

Play 新建一个ddbus工程,只修该build.sbt的配置文件,新增导入如下一项 play run启动正常

在浏览器输入访问地址http://localhost:9000/  无法访问

"com.typesafe.akka" %% "akka-actor" % "2.3.5",


name := "ddbus"

version := "1.0-SNAPSHOT"

libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
  "com.typesafe.akka" %% "akka-actor" % "2.3.5",
)     

play.Project.playScalaSettings 

错误提示信息如下:

[ERROR] [10/23/2014 10:41:31.666] [play-akka.actor.default-dispatcher-2] [ActorS
ystem(play)] Uncaught error from thread [play-akUncaught error from thread [ka.a
ctor.default-dispatcher-2] shutting down JVM since 'akka.jvm-exit-on-fatal-error
' is enabled
play-akka.actor.default-dispatcher-3] shutting down JVM since 'akka.jvm-exit-on-
fatal-error' is enabled for ActorSystem[play]
java.lang.AbstractMethodError
java.lang.AbstractMethodError
        at akka.actor.ActorCell.create(ActorCell.scala:580)
        at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
        at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)
        at akka.actor.ActorCell.invoke(ActorCell.scala:487)
        at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478)
        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
        at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263)
        at akka.dispatch.Mailbox.run(Mailbox.scala:220)
        at akka.dispatch.Mailbox.run(Mailbox.scala:219)
        at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(Abst
ractDispatcher.scala:393)
        at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(Abst
ractDispatcher.scala:393)
        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool
.java:1339)
        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool
.java:1339)
        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:19
79)
        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:19
79)
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThre
ad.java:107)
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThre
ad.java:107)






加载中
0
joymufeng
joymufeng

Play项目默认添加了Akka-Actor依赖,不需要手工添加的。

返回顶部
顶部