Set this property win your persistence.xml if you want to want to use
runtime enhancement.  But I'd use build time enhancement, check the list
archives, runtime enhancement is pretty buggy and using build time
enhancement fixes a lot of issues. I'd just get rid off runtime enhancement
until it is more reliable. 

<property name="openjpa.RuntimeUnenhancedClasses" value="supported"/>

Chris

-----Original Message-----
From: n0weak [mailto:[email protected]] 
Sent: Monday, 10 May 2010 10:55 PM
To: [email protected]
Subject: Re: openjpa javaagent enhancement with tomcat


Well, I set openjpa-all-2.0.0.jar as javaagent, and all startup exceptions
are gone. Still there is no runtime optimization available, an exeption is
being throwed when accessing the database: 

Caused by: <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: "   
-- 
View this message in context:
http://openjpa.208410.n2.nabble.com/openjpa-javaagent-enhancement-with-tomca
t-tp5029993p5030389.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to