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.
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
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
___
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(TransactionManagementT
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
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=posti
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
__
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 :
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
___