Thank you Mike. It works now.
Regards,
Fay
Michael Dick <[EMAIL PROTECTED]> wrote: Hi Fay,
Have you tried using -javaagent:E:\wsjpa\openjpa\openjpa-all\target\openjpa-
1.1.0-SNAPSHOT.jar?
The kernel-5 jar uses a different premain class - which apparently is
missing the premain method.
-Mike
On Dec 18, 2007 2:02 PM, Fay Wang wrote:
> Hi,
>
> I tried to use javaagent to invoke PCEnhancer at the run time, but
> got and error of NoSuchMethodFound:
>
> -javaagent:E:\wsjpa\openjpa\openjpa-kernel-5\target\openjpa-
> kernel-5-1.1.0-SNAPSHOT.jar
>
>
> Exception in thread "main" java.lang.NoSuchMethodException:
> org.apache.openjpa.enhance.InstrumentationFactory.premain(java.lang.String,
> java.lang.instrument.Instrumentation)
> at java.lang.Class.throwNoSuchMethodException(Class.java:274)
> at java.lang.Class.getMethod(Class.java:799)
> at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(
> InstrumentationImpl.java:154)
>
> Fatal error: processing of -javaagent failed
>
> Any help will be appreciated.
>
> Regards,
> Fay
>
>
>
> ---------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo!
> Search.
>
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.