I had the same problems with WebLogic because it always creates separated classloaders for EARs. You just need to put remote interface class, used entities/dtos and exceptions in jar file and this file should be added to the second ear.
There is a long discussion about this topic here:
http://community.jboss.org/thread/33617