[GLASSFISH-4239] Glassfish needs OpenJPA jars in its lib directory to properly perform runtime enhancement Created: 20/Feb/08  Updated: 05/Jan/13  Resolved: 05/Jan/13

Status: Closed
Project: glassfish
Component/s: entity-persistence
Affects Version/s: 9.0pe
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: therealbr Assignee: Mitesh Meswani
Resolution: Invalid Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: Mac OS X
Platform: Macintosh

Issuezilla Id: 4,239


It appears that when I use OpenJPA, if I rely on the JARs being in my EAR file,
OpenJPA does not properly enhance my entities. Specifically it skips over
attributes with


It does so silently, which leads to very hard-to-debug behavior.

If I put the OpenJPA jars in the Glassfish lib directory, the problem goes away.

Comment by Mitesh Meswani [ 20/Feb/08 ]

Can you please attach a sample app that demonstrates the behavior

Comment by harpreet [ 21/Mar/08 ]

moving to next release

Comment by sanandal [ 11/Jan/09 ]

"Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1
release whose primary release driver is SailFin.
This issue will be scrubbed after this release and will be given the right
priority for the next release."

Comment by Mitesh Meswani [ 05/Jan/13 ]

We do properly implement methods getClassLoader(), getNewTempClassLoader() and addTransformer() of PersitenceUnitInfo that facilitates bytecode instrumentation as required by the spec. GlassFish works with both EclipseLink and Hibernate using this.

It might possibly an issue with OpenJPA and may have been fixed in recent versions. Closing this bug as invalid. Please reopen with a reproducible test case if you are still seeing this issue with latest versions of OpenJPA

Generated at Sun Oct 04 10:39:17 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.