4

当我改变时,在我的 persistence.xml

transaction-type="RESOURCE_LOCAL" 

transaction-type="JTA"

我收到此错误:

WebBeans context with scope type annotation @RequestScoped does not exist within current thread

viewId=/pages/login.xhtml
location=/home/jakub/Projekty/Collv2/build/web/pages/login.xhtml
phaseId=RESTORE_VIEW(1)

Caused by:
javax.enterprise.context.ContextNotActiveException - WebBeans context with scope type annotation @RequestScoped does not exist within current thread
at org.apache.webbeans.container.BeanManagerImpl.getContext(BeanManagerImpl.java:351)

我在 TomEE 服务器上使用 OpenJPA

4

0 回答 0