play工程中配置AkkA,无法启动监听
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Play项目默认添加了Akka-Actor依赖,不需要手工添加的。