我使用远程参与者开发了我的应用程序。现在我正在尝试将捆绑包安装到 Felix 中,但问题是它需要我一个 ClusterMessageSerializer 类。我没有使用集群,我的配置是一个简单的远程参与者。你知道为什么会出现这个问题,我该如何解决?
我尝试导入 akka.cluster,但 felix 需要 scalabuff,版本介于 1.2.0 和 1.3.0 之间,不是捆绑包。
这是我的 application.conf:
akka {
actor {
provider = "akka.remote.RemoteActorRefProvider"
}
remote {
enabled-transports = ["akka.remote.netty.tcp"]
netty.tcp {
hostname = "127.0.0.1"
port = 2552
}
}
}
这是一个例外:
Caused by: java.lang.ClassNotFoundException: akka.cluster.protobuf.ClusterMessageSerializer not found by com.typesafe.akka.osgi