openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruslan <>
Subject Re: How do I use commandline PCEnhancer (OpenJPA 1.3) ?
Date Sun, 23 Nov 2008 21:20:27 GMT

Will it repack my JAR after instrumenting all classes ?

I decided to try ANT route and it's not going very well either. Here is what
I tried:

I'm trying to instrument only one class as experiment, but it can't find it
even though I explicitly defined classpath :(

Could you please share working ant configuration file where PCEnhancer works

Thank you!!

Michael Dick wrote:
> Hi,
> It looks like the enhancer can't find persistence.xml - it's expected to
> be
> in a META-INF/ directory somewhere on your classpath. Have you tried
> adding
> it to the classpath explicitly? The later errors look like we can't load a
> given class file (presumably one that the entity depends on), have you
> tried
> running with a persistence.xml and a jar with all your entities on the
> classpath?
> -mike

View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message