[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions
Have spent a while on this myself. The problem (for me at least) was that I I had enabled JTA transactions in persistence.xml, but in components.xml I had configured use of the JPA EntityTransaction API (which is for non-JTA environments) with the line: Removing this line fixed the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144526#4144526 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144526 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions
Also having the same problem... | java.lang.IllegalStateException: Could not start transaction | at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:583) | at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:314) | at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:142) | at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Unknown Source) | Caused by: java.lang.IllegalStateException: JTA EntityManager cannot access a transactions | at org.hibernate.ejb.AbstractEntityManagerImpl.getTransaction(AbstractEntityManagerImpl.java:316) | at org.jboss.seam.persistence.EntityManagerProxy.getTransaction(EntityManagerProxy.java:110) | at org.jboss.seam.transaction.EntityTransaction.getDelegate(EntityTransaction.java:62) | at org.jboss.seam.transaction.EntityTransaction.begin(EntityTransaction.java:82) | at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:578) | ... 38 more | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120630#4120630 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120630 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions
I am having the same issue. Any help would be great View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100443#4100443 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100443 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions
Hello! I'm not sure , but if I look at your code you instantiate the em by yourself. Examples I've seen do not do that, they leave that part to JBoss, like the following code. Are you sure you get the correct entity manager? | | @Stateless | @TransactionManagement(TransactionManagementType.BEAN) | public class MySessionBean implements MyInterface { | |@Resource |private EntityManager em; | | } | | Kind regards /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086326#4086326 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086326 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions
I am facing the same problem. Did you get the solution? Please let me know View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086292#4086292 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086292 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions
Hi could you find what is the problem on your exception? I am getting this exception as well and I've stuck at this point :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081316#4081316 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081316 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions
Hi! This line exists before the Stateless Bean implementation. Thanks, Konstantin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991681#3991681 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991681 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions
Hi, not sure but I think default is container managed tx, so you have to explicit told your bean will take care of TXs, something like this: @TransactionManagement(TransactionManagementType.BEAN) public class YourBean implements YourInterface Hope it helps. bye Dalibor View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991647#3991647 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991647 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions
Sorry, the message is as following: JTA EntityManager cannot access a transactions View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991597#3991597 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991597 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user