• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

JPA in wildfly 10 standard implementation  RSS feed

 
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
 
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!