• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPA in wildfly 10 standard implementation  RSS feed

 
karim badache
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to connect to my database (h2) inside wildfly 10.
I want to use the standard java ee7 implementation.

1st problem, in Intellij, when I add support framework Java EE application and Java EE persistence, I got 2 META-INF folders :



2nd problem, I get the error PersistenceException: No Persistence provider for EntityManager named pu when I launch the app.

Here my persistence.xml :



My endpoint :



I know that h2 works because I did a little test with jdbc :



Thanks for your help
 
Youssef Sourour
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello @Karim
First of all check the persistence config file path in  the web.xml file.
could you show us the web.xml file content ?


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!