At least the tool is running.
The easiest way to verify that the classes were enhanced is to decompile
them and see if they implement the PersistenceCapable interface. Javap works
fine for this.
If your classes do not implement PersistenceCapable, try adding this to
persistence.xml to enable enhancement logging :
<property name="openjpa.Log" value="Enhance=TRACE"/>
Then you should see something like this in your maven build :
252 BeanValidation TRACE [main] openjpa.Enhance - Enhancing type "class
org.apache.openjpa.example.gallery.model.Location" loaded by
java.net.URLClassLoader@1cc0a0f.
387 BeanValidation TRACE [main] openjpa.Enhance - Enhancing type "class
org.apache.openjpa.example.gallery.model.Album" loaded by
java.net.URLClassLoader@1cc0a0f.
433 BeanValidation TRACE [main] openjpa.Enhance - Enhancing type "class
org.apache.openjpa.example.gallery.model.Creator" loaded by
java.net.URLClassLoader@1cc0a0f.
499 BeanValidation TRACE [main] openjpa.Enhance - Enhancing type "class
org.apache.openjpa.example.gallery.model.Image" loaded by
java.net.URLClassLoader@1cc0a0f.
If the entities do implement PersistenceCapable, then there's a different
problem.
hope this helps,
-mike
On Tue, Jun 7, 2011 at 10:22 AM, infinity2heaven
<[email protected]>wrote:
> just did that and get the same error:
> "This configuration disallows runtime optimization ...."
>
> How can I check if my .class files are actually enhanced?
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/openjpa-build-time-enhance-using-maven-plugin-DOESN-T-WORK-tp6446547p6450082.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>