JBoss.org Community Documentation
An IllegalStateException with the message "removing bean lock and it has tx set!" usually means that you have not implemented equals
and/or hashCode
correctly for your custom/complex primary key class, or that your primary key class is not implemented correctly for serialization.