hibernate - java.lang.IllegalArgumentException: Unable to locate persister -


i working on project migrated wls8 wildfly 10. hibernate 3.3 (implementation of jpa) used in wls8. however, wildfly 10 doesn't support version use default hibernate (version 5) bundled wildfly 10.

but got run time error:

error [stderr] (default task-32) java.lang.illegalargumentexception: unable locate persister: com.x.switch.entity.loc

here file/class structure in .war:

--web-inf
  --classes
    --com
    --meta-inf
      --persistence.xml
  --lib
  --web.xml
  --jboss-web.xml

i couldn't figure out why entity not found (as under classes , packaged in war file).

ironically after list entities in persistence.xml, error gone. it's fixed still don't understand why need since every entity annotated.


Comments

Popular posts from this blog

.net - Generate assembly with Roslyn -

ZeroMQ on Windows, with Qt Creator -

batch file - filebot superstrict script: need tiny video sample or other solution -