No Persistence provider for EntityManager named x [closed]

-3

This project does not recognize my Persistence Provider. It follows the same thing below.

Yourlocationplusdependencies:

I'mcallingitthroughaverysimpleXHTMLusingaManageBean.Followingimages:

Theimageoftheerrorfollows.

    
asked by anonymous 15.09.2016 / 20:51

1 answer

3

The problem was simple! The code was correct ...

There was a problem because the one in my pom.xml explained so that the dependencies were provider. That is, at the time of going up to the server, the war went without the dependencies.

To solve the problem, I started using a server with the project libs already inside the server's own lib folder and this solved the problem. I could also use a specific attribute (which I can not remember the name of) to be able to force it to generate the dependencies, but it was not the case since the industry standard here is to leave the libs on the server itself.

Thanks in advance for your attention!

    
16.09.2016 / 20:10