I have a (Serializable) business interface (SimpleStateless).
I have a class that implements it but which is not an EJB of any kind (SimpleStatelessBean).
I have a class that extends SimpleStatelessBean (SimpleStatelessBeanExtension). It is annotated as @Stateless(name="Extension") and @Remote.
When this small module is tested with the maven-embedded-glassfish-plugin, a CORBA serialization error occurs. If you remove the inheritance (and adjust annotations accordingly), everything works fine.
(In the attached test case please note that the interesting bits are all in src/test/java, not src/main/java. The attached test case as written will only function when http://java.net/jira/browse/GLASSFISH-15835 is fixed.)
Bhavani is already working on this.