• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Deepaks Deshpande
Ranch Hand
Posts: 114
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Deepaks Deshpande
Ranch Hand
Posts: 114
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
please buy my thing and then I'll have more money:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!