[
https://issues.jboss.org/browse/AS7-6956?page=com.atlassian.jira.plugin.s...
]
Scott Marlow commented on AS7-6956:
-----------------------------------
Workaround:
If you want an extended persistence context in a web application, change to
@PersistenceUnit(unitName = "MyPU") EntityManagerFactory. The EntityManager
that you get from the EntityManagerFactory will be application managed (instead of
container managed) and is probably what you want. The scope of the an application managed
persistence context is that the EntityManager will stay open until you call close on it.
NullPointer @
org.jboss.as.jpa.container.ExtendedPersistenceDeepInheritance
---------------------------------------------------------------------------
Key: AS7-6956
URL:
https://issues.jboss.org/browse/AS7-6956
Project: Application Server 7
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: EAP 6.1.0.Alpha (7.2.0.Final)
Reporter: Brand Neu
Assignee: Scott Marlow
Attachments: JBoss Web_7.2.0.Final - JBWEB000064 Error report.htm
Webproject with ManagedBean contains following PersistenceContext:
@PersistenceContext(unitName = "MyPU", type = PersistenceContextType.EXTENDED)
WebApp run fine under Jboss-7.1, in JBoss-7.2 (EAP-6.1.0) we've got
NulPointer-Exception and therefore further exceptions.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira