PersistenceException: No Persistence provider for EntityManager named xyz
3 respostas
leorbarbosa
Pessoal,
estou fazendo um exemplo bem básico de persistência com toplink, e na linha abaixo
public AutoresController()
{
emf = Persistence.createEntityManagerFactory("xyz");
}
surge o erro
[color=red]javax.persistence.PersistenceException: No Persistence provider for EntityManager named xyz: No META-INF/persistence.xml was found in classpath.
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)[/color]