change persistence provider from
org.hibernate.jpa.HibernatePersistenceProvider to
org.hibernate.ejb.HibernatePersistence.