removing unnecessary provider in persistence.xml and setting hibernate-entitymanager as provided.