aspose file tools*
The moose likes Object Relational Mapping and the fly likes JPA: Unable to configure EntityManagerFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JPA: Unable to configure EntityManagerFactory" Watch "JPA: Unable to configure EntityManagerFactory" New topic
Author

JPA: Unable to configure EntityManagerFactory

Leonardo Terrao
Greenhorn

Joined: Oct 13, 2011
Posts: 15
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

Joined: Jul 14, 2010
Posts: 754

Which directory is your persistence.xml?

Is desktop or web?

Maybe this post will help you: Tutorial Hibernate 3 with JPA 2


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Leonardo Terrao
Greenhorn

Joined: Oct 13, 2011
Posts: 15
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

Joined: Mar 24, 2008
Posts: 3838

Perhaps this might help...


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Leonardo Terrao
Greenhorn

Joined: Oct 13, 2011
Posts: 15
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

Joined: Mar 24, 2008
Posts: 3838

You may need to tell more details on how you run the application? Standalone mode? If so what the exact command?
Leonardo Terrao
Greenhorn

Joined: Oct 13, 2011
Posts: 15
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPA: Unable to configure EntityManagerFactory