0 0

项目由jboss5迁移到jboss7遇到的问题0

概率性报错;页面报错信息如下:
Caused by javax.ejb.EJBTransactionRolledbackException with message: "JBAS011437: Found extended persistence context in SFSB invocation call stack but that cannot be used
because the transaction already has a transactional context associated with it. This can be avoided by changing application code, either eliminate the extended persistence
context or the transactional context. See JPA spec 2.0 section 7.6.3.1. Scoped persistence unit name=omc.ear/omc.jar#omc, persistence context already in
transaction =ExtendedEntityManager [omc.ear/omc.jar#omc], extended persistence context =ExtendedEntityManager [omc.ear/omc.jar#omc]."



jboss5下运行正常,貌似与如下代码有关,不兼容的问题,
@PersistenceContext(type = PersistenceContextType.EXTENDED)
private EntityManager em;

问题补充:此报错只在jboss7下有时出现;
2013年5月03日 16:27
目前还没有答案

相关推荐

Global site tag (gtag.js) - Google Analytics