Akka uses the context classloader of the thread that creates the actor system. Try to set it to null before.
Cheers,
V
--
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.
Could you post the simple program? It could assist us understanding the question.
--
Jonas Bonér
CTO
Typesafe - The software stack for applications that scale
Phone: +46 733 777 123
Twitter: @jboner
Blog: letitcrash.com
sbt> run
[info] Running test.akka.Test
Jolly good> timeout
Jolly good> timeout
Jolly good> timeout
…
sbt> console
[info] Starting scala interpreter...
[info]
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_29).
Type in expressions to have them evaluated.
Type :help for more information.
scala> import test.akka.Test
import test.akka.Test
scala> Test.jolly
scala> Jolly good> timeout
Jolly good> timeout
Jolly good> timeout
...
> Interesting indeed.
>
> It runs fine for me too when I run it under the console through sbt
> the way you describe. However, if I run it using:
>
> scala -classpath <path to classes and jar>
>
> and import and execute, I do get the error I mentioned.
>
> Why does running scala directly yield the error...?
Each line in the repl runs in a separate thread. If you add the -Yrepl-sync option it should work fine.
You could also set the context classloader with something like:
{ Thread.currentThread.setContextClassLoader(Test.getClass.getClassLoader); Test.jolly }
Mike
> Where is -Yrepl-sync documented?
I don't know if there's richer documentation but scala -Y lists all the -Y options with short descriptions.
--
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.