openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albert Lee <allee8...@gmail.com>
Subject Re: [jira] [Comment Edited] (OPENJPA-915) PCEnhancer cannot enhance an entity bean in a jar
Date Wed, 05 Jun 2013 13:22:59 GMT
I am not familiar with Karaf.  From just browsing the Karaf home site, it
looks like it is a osgi based runtime but without JPA container-managed
persistence support. Therefore it does not perform runtime enhancement.

Just a guess, I wonder if you can use -javaagent when launching Karaf so
that the enhancer can be tapped into Karaf's runtime.



On Wed, Jun 5, 2013 at 4:26 AM, yangjun (JIRA) <jira@apache.org> wrote:

>
>     [
> https://issues.apache.org/jira/browse/OPENJPA-915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13675735#comment-13675735]
>
> yangjun edited comment on OPENJPA-915 at 6/5/13 9:25 AM:
> ---------------------------------------------------------
>
> I am now facing the same issue.
> Right now MyEntity extends super class from dependency jar which could not
> enhanced at build time.
> Since I am using Karaf as container, there are no ways to introduce
> runtime Enhancement as far as I could see.
> Any body  has opinions?
>
>       was (Author: acyangjun):
>     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
>



-- 
Albert Lee.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message