Explanation | When a stateful session bean is located in a WAR, it must declare dependencies on all persistence context references and persistence unit references that it intends to access. |
Action | Add the appropriate @PersistenceContext or @PersistenceUnit source code annotation to the stateful session bean, or add the appropriate <persistence-context-ref> or <persistence-unit-ref> element to the appropriate <session> element in the ejb-jar.xml file. |