javax.persistence.PersistenceException: No Persistence provider for EntityManager

Ошибка:

INFO: HHH000318: Could not find any META-INF/persistence.xml file in the classpath
Exception in thread «main» javax.persistence.PersistenceException: No Persistence provider for EntityManager named *persistence-unit name=»»*

Возможное решение:

Проверьте, что persistence.xml находится в пакете resourses\META-INF, а не в корне (создается там по умолчанию при добавлении JPA, Hiberante)

 

 

Share Button
3
5517 Total Views 1 Views Today

Добавить комментарий