why EntityManager is null?

前端 未结 3 1807
-上瘾入骨i
-上瘾入骨i 2021-01-05 00:32

In my web applicaton I use OpenJPA on Apache Tomcat (TomEE)/7.0.37 server. I use Netbeans to auto generate class (\"Entity Class from database...\" and \"Session Beans From

3条回答
  •  独厮守ぢ
    2021-01-05 01:01

    The persistence.xml file should be under META-INF folder. Check this documentation to understand the structure.

提交回复
热议问题