为什么交易类型=" JTA"原因"带有范围类型注释的WebBeans上下文@RequestScoped在当前线程中不存在"?

时间:2013-09-17 14:25:58

标签: java openjpa persistence.xml tomee

当我从

更改时,在我的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

0 个答案:

没有答案