Classnotfoundexception because of messages


(nayni) #1

Hi everyone,

I’m new to akka an trying to make a small project of an in memory database. There is a client that communicates with a database actor.
I defined the messages as case classes in two separate files, one for the client and one for the database. They contain exactly the same definitions.

However, when I run the programs I have a classnotfoundexception on the database actor side when it receives any message from the client.
The program works perfectly when I only use simple String variables as messages.


(Patrik Nordwall) #2

The message classes must be in the classpath of both sender and receiver.