I have an RPC servlet that only returns a String back to the client. This works fine. As soon as I change the return type from String to one of my custom classes contained in another project (let's say the return tpye is an instance of a custom Employee class) this is also fine in the Java class implementing the service but not in the interface defining the service and the AsyncCallback. There I get this compiler error:
de.stsch.sample.Employee can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly.
What is this message trying to tell me? Is this GWT Designer's way to prevent me from doing this nonsense and to force me to use a compatible return type?
Update: If I put my custom class into my GWT project (into the client package) everything seems to work fine. Does that mean that i cannot reference another project from my GWT project and use the classes of the referenced project as parameters and return types of my RPC service? Why is that?