On 7 March 2012 10:53, afryer <[email protected]> wrote: > I've had issues with eclipse not refreshing the class files after > enhancement. It might be worth manually refreshing your project by clicking > your project and hitting F5 before running your test case to make sure the > enhanced class files are loaded by eclipse.
Thank you for the tip, to try and ensure that this isn't the problem I've built and deployed the webapp in an external tomcat server, that way I can find all the instances of my classes and double check they are enhanced and the only instance of my .class files definitely references to the "org/apache/openjpa/enhance/PersistenceCapable" interface. I also switched on jpa logging (<property name="openjpa.Log" value="DefaultLevel=TRACE" />) and I see the following log messages: 1409 audit TRACE [main] openjpa.Enhance - "audit/orm/HibernateServerDetail" requires runtime enhancement: false So it looks like at least one part of openJPA thinks my classes are properly enhanced however as soon as I try and run a query I still the exception saying that my classes are not enhanced at build time :(. I'm totally stumped now as to what to try.
