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

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -