Be sure your class path at runtime has the enhanced classes before the un-enhanced classes.

Craig

On Jul 11, 2010, at 6:27 PM, C N Davies wrote:

Decompile them and you can see for sure. "implements PersistenceCapable"

C hris


-----Original Message-----
From: jingmeifan [mailto:[email protected]]
Sent: Monday, 12 July 2010 5:54 AM
To: [email protected]
Subject: Re: Disabling enhancement on my netbeans project


I already enhance the model classes in build time, but I still get

<openjpa-2.0.0-r422266:935683 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: This configuration
disallows runtime optimization, but the following listed types were not
enhanced at build time or at class load time with a javaagent: "
...

I checked the size of class file before enhancement and after enhancement,
the after is bigger than before.

--
View this message in context:
http://openjpa.208410.n2.nabble.com/Disabling-enhancement-on-my-netbeans-pro
ject-tp3861704p5280701.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Craig L Russell
Architect, Oracle
http://db.apache.org/jdo
408 276-5638 mailto:[email protected]
P.S. A good JDO? O, Gasp!

Reply via email to