openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Lee (JIRA)" <>
Subject [jira] [Commented] (OPENJPA-915) PCEnhancer cannot enhance an entity bean in a jar
Date Thu, 06 Jun 2013 13:43:20 GMT


Albert Lee commented on OPENJPA-915:

Enhancement process is to insert JPA "magics" into the entity class byte stream. Using container
managed or javaagent can perform this transformation on the fly during an entity class loading
process. Otherwise, build time enhancement of dependent entity super class requires the build
process to expand the depending jar file content, run the enhancer and zip it back up. This
is only require for a one-time processing.
> PCEnhancer cannot enhance an entity bean in a jar
> -------------------------------------------------
>                 Key: OPENJPA-915
>                 URL:
>             Project: OpenJPA
>          Issue Type: Improvement
>         Environment: linux, java 1.6.0_12
>            Reporter: Adam Hardy
> The PCEnhancer fails when trying to enhance an entity bean found in a jar. It tries and
fails to write the enhanced class output to the jar rather than the build directory of the
> This means I cannot have my entity bean superclass in a seperate framework-centric project
for re-use by all JPA-based projects, unless I enhance the class when jarring up the framework
project. This would prevent me from sharing the jar with other JPA-based projects which don't
use OpenJPA. 
> I would recommend that the PCEnhancer checks the file path to write the enhanced class
to before writing and removes any Jar-prefix if present, writing the class to the normal build

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message