• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA: Unable to configure EntityManagerFactory

 
Leonardo Terrao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello people I'm doing an example in JPA, but I came up with a problem! Help me please!

this is my error!


this is my persistence file


this is the class that I excute.


my annotated class


Thank you guys!
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which directory is your persistence.xml?

Is desktop or web?

Maybe this post will help you: Tutorial Hibernate 3 with JPA 2
 
Leonardo Terrao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank Hebert Coelho!

I'll take a look at this tutorial!

My project is the Archiving and web pesistencia is in src / META-INF.

have a sense of what could be causing this problem?
 
Vijitha Kumara
Bartender
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps this might help...
 
Leonardo Terrao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank Vijitha Kumara!

I auditioned here according to the link and can not resolve the problem!

Added hibernate-validator-3.0.0.jar, to my class path but it did not... Each time I am lost!

 
Vijitha Kumara
Bartender
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may need to tell more details on how you run the application? Standalone mode? If so what the exact command?
 
Leonardo Terrao
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Vijitha Kumara!
I just solve the problem, this is a generic error can be caused by several factors.

I got resove changing the jars, I think he had any problem with jar, so I was giving the error!


Thank you!
Leonardo TerrĂ£o
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic