I have a project setup with an EAR and two WAR projects (=modules) in Eclipse for Google AppEngine (GAE). I would like to reference classes from module A in module B. How do I do this?
What I have done so far:
I have added module A to the build path of module B. This solves the problem with the compiler, but it does not solve the problem of referencing classes during runtime. I receive a java.lang.NoClassDefFoundError.
Context:
GAE modules share the same datastore, so I want to access the same persistence classes. These classes are defined and enhanced in module A. What is the best practive with this regard?