I'm running 4.0.3RC1 with EJB3Beta and MySQL. My persitance.xml files have the second_level cahce turned on. I'm getting a couple of these near the start of the log
WARN [org.jboss.resource.connectionmanager.TxConnectionManager] Prepare cal led on a local tx. Use of local transactions on a jta transaction with more than one branch may result in inconsistent data in some cases of failure.
ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)