I have some server initiated remote actors which have been in production for a while. They run happily in 'sbt console' or run as a library in various servlet containers. I would now like to test deploying to the microkernel for the sake of portability. I have tried a few options but keep getting the same error, wondering what I am doing wrong.
Sample remote actor:
class DummySimpleActorService extends ... {
override def init = {
RemoteNode.start("localhost", 9999)
RemoteNode.register("dummy:service", self)
}
}
Sample deployment:
...
...
class Boot {
val supervisor = Supervisor(
SupervisorConfig(
RestartStrategy(AllForOne, 3, 1000, List(classOf[Exception])),
Supervise(
actorOf[DummySimpleActorService],
LifeCycle(Permanent),
RemoteAddress("localhost", 9999))
:: Nil))
//val actorService = actorOf[DummySimpleActorService].start
/*class Boot {
val factory = SupervisorFactory(
SupervisorConfig(
RestartStrategy(OneForOne, 3, 100,List(classOf[Exception])),
Supervise(
actorOf[DummySimpleActorService],
LifeCycle(Permanent))
:: Nil))
factory.newInstance.start
}*/
}
I keep getting :
java.lang.ClassNotFoundException: dummy:service
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at se.scalablesolutions.akka.remote.RemoteServerHandler.createActor(RemoteServer.scala:516)
at se.scalablesolutions.akka.remote.RemoteServerHandler.dispatchToActor(RemoteServer.scala:441)
at se.scalablesolutions.akka.remote.RemoteServerHandler.handleRemoteRequestProtocol(RemoteServer.scala:431)
at se.scalablesolutions.akka.remote.RemoteServerHandler.messageReceived(RemoteServer.scala:418)
at se.scalablesolutions.akka.remote.RemoteServerHandler.handleUpstream(RemoteServer.scala:411)
thanks for your help,
-- Ross
Ross McDonald
Twitter: @rossajmcd
Blog: rossputo.blogspot.com
> --
> You received this message because you are subscribed to the Google Groups "Akka User List" group.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
>
>
--
Jonas Bonér
code: http://akkasource.org
blog: http://jonasboner.com
twitter: @jboner
Yes, master, updated this morning.
Thanks,
-- Ross
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
--
I get this when I send the actor its first message. I am just going to bash together a quick dummy project, I will try to attach it on the list or email it once I am done.
Cheers,
-- Ross
Yes. That is it. It mixes ID with class name. Shouldn't be too hard to find.
>
> I need to head out to grab something to eat,
> if you need my assistance when I get back I'm available.
Take it. I'm up to my nose in doc hell.
-- Ross
-- Ross
All sorted thanks to your help Viktor. One happy user about to head to bed and dream sweet hAkking dreams :-)