I have 2 different Java projects, one has 2 classes: dynamicbeans.DynamicBean2 and dynamic.Validator.
dynamicbeans.DynamicBean2
dynamic.Validator
On the other project, I load both of
I had the same issue, and I finally found a workaround on java.net :
Copy all org.eclipse.persistence jar files from glassfish4/glassfish/modules to WEB-INF/lib. Then go in your glassfish-web.xml, and set class-delegate to false.
org.eclipse.persistence jar
glassfish4/glassfish/modules
WEB-INF/lib
glassfish-web.xml
class-delegate
false
Worked for me !