Could not open JPA EntityManager for transaction; nested exception is java.lang.NullPointerException

1 <persistence-unit name="WebofficeOne" transaction-type="JTA ">

改为

1 <persistence-unit name="WebofficeOne" transaction-type="RESOURCE_LOCAL">

 JTA 在jee环境下运行

RESOURCE_LOCAL在jse环境下使用

posted @ 2014-10-14 15:07  LeonGo  阅读(3441)  评论(0编辑  收藏  举报