typically for deploy time enhancement i created a temp classloader only for
the enhancement since the enhancing needs to load the clss (WTF? asm doesnt
need it normally! is it because of serp?)

- Romain


2012/7/15 Mark Struberg <[email protected]>

> Might be the same issue I experienced here:
> https://issues.apache.org/jira/browse/OPENJPA-1454
>
> The bug is closed as there have been improvements for a few scenarios. But
> the basic problem still exists.
>
> I did not reopen the bug as I have an idea how to fix that: Creating an
> own ClassLoader for the enhancer and prevent trashing the SystemClassLoader
> that way.
>
> Of course that still might get you weird results as we might pick up the
> OpenJPA classes provided by TomEE to enhance the classes, and later using
> the OpenJPA classes provided by the user in WEB-INF/lib/
>
>
> LieGrue,
> strub
>
>
>
> ----- Original Message -----
> > From: Romain Manni-Bucau <[email protected]>
> > To: [email protected]
> > Cc:
> > Sent: Saturday, July 14, 2012 12:07 AM
> > Subject: Re: javaagent?
> >
> > active back the javaagent,
> >
> > run tests on openejb-core.
> >
> > BundleUtils (from openjpa) will be in linkagerror
> >
> > - Romain
> >
> >
> > 2012/7/14 David Blevins <[email protected]>
> >
> >>
> >>  On Jul 13, 2012, at 3:01 PM, Romain Manni-Bucau wrote:
> >>
> >>  > not the same issue at all
> >>  >
> >>  > i spoke about java 7, this error was with j6 too
> >>
> >>  Any steps to reproduce this error?
> >>
> >>
> >>  -David
> >>
> >>  >
> >>  > 2012/7/13 David Blevins <[email protected]>
> >>  >
> >>  >>
> >>  >> On Jul 12, 2012, at 6:07 AM, Romain Manni-Bucau wrote:
> >>  >>
> >>  >>> why i ask is mainly because in java it breaks the runtime
> > because it
> >>  >> tries
> >>  >>> to load the class we are loading the it leads to some
> > LinkageErrors....
> >>  >>
> >>  >> I was able to reproduce the most recent LinkageError
> >>  >> (ResourceLocalCdiEmTest) with no javaagent installed.
> >>  >>
> >>  >> Not sure how you tested that removing the javaagent fixed a
> >>  LinkageError,
> >>  >> but it might be coincidence.
> >>  >>
> >>  >>
> >>  >> -David
> >>  >>
> >>  >>
> >>
> >>
> >
>

Reply via email to