环境:
persistence.xml配置文件中
<persistence-unit name="managementPersistenceUnit"
transaction-type="REAOURCE_LOCAL"
......>
问题:
Caused by: java.lang.RuntimeException: Error occurred during deployment: Exception while preparing the app : The persistence-context-ref-name [com.neusoft.saca.snapmgr.management.service.impl.CacheServiceImpl/em] in module [snap-main] resolves to a persistence unit called [managementPersistenceUnit] which is of type RESOURCE_LOCAL. Only persistence units with transaction type JTA can be used as a container managed entity manager.
REAOURCE_LOCAL和JTA
原文:http://www.cnblogs.com/SeaChina/p/4326121.html