aspose file tools*
The moose likes Object Relational Mapping and the fly likes Exception in example Using Hibernate Entity Manager in 2nd chapter of Java Persistence WithHibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Exception in example Using Hibernate Entity Manager in 2nd chapter of Java Persistence WithHibernate" Watch "Exception in example Using Hibernate Entity Manager in 2nd chapter of Java Persistence WithHibernate" New topic
Author

Exception in example Using Hibernate Entity Manager in 2nd chapter of Java Persistence WithHibernate

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 113

Hi,

I am trying out the hello world example in the 2nd chapter (sesction 2.2.2 Using Hibernate Entity Manager)of Manning's Java Persistence with Hibernate book.
I have created a simple java project in eclipse called HibernateEntityManager. I have included the following jars in the lib folder.


I have the "persistence.xml" file under the META_INF directory which is placed under the src directory.
When I am running this application It is giving me the following exception

I have googled regarding the exception and its cause but i have been unable to find any solution for the same.
Thank you.


Regards,
Deepak

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 113

Hi guys,

I have solved this problem. It is due to duplicate dependencies because of additional jars. Now the required jar for this application are

Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception in example Using Hibernate Entity Manager in 2nd chapter of Java Persistence WithHibernate