This content has been marked as final.
Show 3 replies
-
1. Re: java.sql.SQLException: You cannot set autocommit during a managed transaction!
milhaim May 23, 2012 11:49 AM (in response to tcharman)Which application server are you using ?
I have this error when I use Jboss AS 5.1 and set hibernate.hbm2ddl.auto to create in ther persistance.xml file, this create the data base the first time
if it's your case u need to remove this line from the file :
<property name="hibernate.hbm2ddl.auto" value="create" />
or not use the jboss transaction manager
hope this will help
-
2. Re: java.sql.SQLException: You cannot set autocommit during a managed transaction!
vi_mahe_ka1 Oct 21, 2012 7:50 AM (in response to tcharman)Hi Tim,
is the error is still reproducible ?
if not can you please post the solution ?
-
3. Re: java.sql.SQLException: You cannot set autocommit during a managed transaction!
tcharman Oct 22, 2012 9:32 AM (in response to vi_mahe_ka1)We tried what you suggested Mahesh, and we haven't seen the error since. Apologies for the tardiness in reply.