> Von: Steve [mailto:[email protected]] 
> Gesendet: Donnerstag, 8. März 2012 10:24
> An: [email protected]
> Betreff: Re: ArgumentException calling 
> entityManager.createQuery but enhancer has been run.
> 
> 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.
>

Hello Steve,

You wrote orignally that your were migrating away from Hibernate, yet, in you 
most recent
Posting, you have a Link to "audit/orm/HibernateServerDetail".

Maybe this is part of the problem?

Cheers,

 

John

---- 

Who is General Failure, and why is he reading my hard disk?

Reply via email to