[GLASSFISH-13688] Enable weaving while running in GlassFish Embedded Created: 29/Sep/10  Updated: 02/Dec/11

Status: Open
Project: glassfish
Component/s: entity-persistence
Affects Version/s: 4.0
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Mitesh Meswani Assignee: Mitesh Meswani
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: All

Issuezilla Id: 13,688


Currently weaving is disabled while running in GlassFish embedded. This is because
it is not possible to ensure that user has already loaded an entity class using
apps's class loader before a persistence provider bootstraps. Need to work towards
a solution to enable weaving

Comment by ljnelson [ 31/Jan/11 ]

Please note that when I run embeddable Glassfish, I get weaving exceptions--that is, it appears that it's looking for weaved methods, even though (as this bug reports) weaving is disabled.

Here's an example:

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.2.0.v20110114-r8831): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: A NullPointerException would have occurred accessing a non-existent weaved vh method [_persistence_get_nameType_vh]. The class was not weaved properly - for EE deployments, check the module order in the application.xml deployment descriptor and verify that the module containing the persistence unit is ahead of any other module that uses it.
Exception Description: The method [_persistence_set_nameType_vh] or [_persistence_get_nameType_vh] is not defined in the object [com.jenzabar.ngp.constituent.jpa.DefaultNameTemplateEntity].

If I explicitly disable weaving in my persistence.xml, via eclipselink.weaving=false, then this error goes away.

Comment by ljnelson [ 10/Feb/11 ]

Please also see http://java.net/jira/browse/GLASSFISH-15769

Generated at Fri Nov 27 03:39:58 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.