You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "yangjun (JIRA)" <ji...@apache.org> on 2013/06/05 11:24:21 UTC

[jira] [Commented] (OPENJPA-915) PCEnhancer cannot enhance an entity bean in a jar

    [ https://issues.apache.org/jira/browse/OPENJPA-915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13675735#comment-13675735 ] 

yangjun commented on OPENJPA-915:
---------------------------------

I am now facing the same issue.
                
> PCEnhancer cannot enhance an entity bean in a jar
> -------------------------------------------------
>
>                 Key: OPENJPA-915
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-915
>             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 project.
> 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 directory.

--
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: http://www.atlassian.com/software/jira