Issue Details (XML | Word | Printable)

Key: GLASSFISH-13688
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Mitesh Meswani
Reporter: Mitesh Meswani
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

Enable weaving while running in GlassFish Embedded

Created: 29/Sep/10 11:23 AM   Updated: 02/Dec/11 07:24 PM
Component/s: entity-persistence
Affects Version/s: 4.0
Fix Version/s: None

Time Tracking:
Not Specified

Environment:

Operating System: All
Platform: All


Issuezilla Id: 13,688
Tags:
Participants: ljnelson and Mitesh Meswani


 Description  « Hide

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



ljnelson added a comment - 31/Jan/11 01:40 PM

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.


ljnelson added a comment - 10/Feb/11 06:09 AM