When an EAR containing an Entity with an Embedded field is deployed to wildfly/EAP with hibernate.ejb.use_class_enhancer=true set in persistence.xml, JavassistClassTransformer.doTransform() throws a ClassNotFoundException when trying to resolve the embedded field type.
This occurs in wildfly/EAP where the classes added to the javassist classpool have not been loaded from the same classloader used to deploy the EAR.
|