Hi Romain,

Just tried it with that configuration.  It results in:

<openjpa-2.4.1-r422266:1730418 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: "
ws.ament......Employee".

So... is there a way to do runtime enhancement with a unit test? Or enable it 
via persistence.xml ?

John

On 2016-11-26 12:07 (-0500), Romain Manni-Bucau <[email protected]> wrote: 
> Hi John
> 
> did you list them as <class> in your persistence.xml (also
> exclude-unlisted=true)?
> 
> 
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://blog-rmannibucau.rhcloud.com> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> <https://javaeefactory-rmannibucau.rhcloud.com>
> 
> 2016-11-26 18:04 GMT+01:00 John D. Ament <[email protected]>:
> 
> > Hi,
> >
> > I'm trying to bring in OpenJPA as a JPA provider in my app.  I'm switching
> > from Hibernate.  While running some arquillian tests I get the following
> > exception: https://paste.apache.org/UwNb
> >
> > So I'm wondering, is there something I can do in OpenJPA to either
> > explicitly list my entity classes, or make it not try to load classes a
> > second time?
> >
> > John
> >
> 

Reply via email to