It can be fixed by adding this property to the persistence.xml file :
<!-- working with jboss -->
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
otherWhise you can use this
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.TransactionManagerLookup
"/>
Hope it helps you tofix it.