Your limitations are unfortunate, Laird.  The RuntimeUnenhancedClasses
support within OpenJPA is just fine for simple, out-of-the-box
applications.  But, as soon as you start to push the envelope with features,
function, performance, etc, this RuntimeUnenhancedClasses support just won't
cut it.

Doing buildtime enhancement is quite easy and wouldn't affect your junit
execution.  Would that be an option?

Are you using the Sun JDK?  If so, then using the dynamic java agent support
might also do the trick for you.  Rick would have more details on that.

Even if you could verify that doing enhancement in one form or another gets
you around the NCDF exception would be a good first step with narrowing down
the problem.

Kevin

On Thu, May 13, 2010 at 12:03 PM, ljnelson <[email protected]> wrote:

>
> Suppose hypothetically that weren't an option?  :-)
>
> I have a parameterized JUnit test case that loops over persistence units.
> I've made each such unit declare an explicit provider, one from each of the
> Big Three (you guys, that funny project that starts with "H" and rhymes
> with
> "fiber, mate!", and the other one that has too many "l"s and "p"s in it).
> For each unit, the test asks for a new EntityManagerFactory, and from it a
> new EntityManager.
>
> So I don't have the ability to enhance classes for each run.
>
> Best,
> Laird
>
> On Thu, May 13, 2010 at 12:50 PM, Rick Curtis [via OpenJPA] <
> [email protected]<ml-node%[email protected]>
> <ml-node%[email protected]<ml-node%[email protected]>
> >
> > wrote:
>
> > I'd suggest trying the OpenJPA javaagent just to rule out any problems
> that
> > might be happening due to the RuntimeUnenhancedClasses.
> >
> >
> >
> > ------------------------------
> >  View message @
> >
> http://openjpa.208410.n2.nabble.com/NoClassDefFoundError-in-JavaSE-environment-tp5043127p5047019.html
> > To start a new topic under OpenJPA Users, email
> > [email protected]<ml-node%[email protected]>
> <ml-node%[email protected]<ml-node%[email protected]>
> >
> > To unsubscribe from OpenJPA Users, click here< (link removed) =>.
> >
> >
> >
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/NoClassDefFoundError-in-JavaSE-environment-tp5043127p5047083.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>

Reply via email to