java.sql.SQLException: You cannot set autocommit during a managed transaction!
http://www.coderanch.com/t/321292/EJB-JEE/java/java-sql-SQLException-set-autocommit
There's no real error here, its pretty straight forward. You cannot set autocommit during a managed transaction. Try setting the transaction type to BMT (bean-managed transaction) if you want to modify the settings. Speaking of which, why are you setting autocommit at all? If there's a transaction present, autocommit would be off by default anyway.