Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

Hibernate Error: Failed to create sessionFactory object.java.lang.NoClassDefFoundError

In this tutorial we will solve the Hibernate Error: Failed to create sessionFactory object.java.lang.NoClassDefFoundError

Ads

Tutorials   
When should you use Hibernate? What's new in Hibernate 5? How much time it takes to learn Hibernate? Hibernate envers custom revinfo table Hibernate 5 Envers Hibernate Envers get all revisions Hibernate Examples Hibernate 5 build SessionFactory Example Hibernate 5 SessionFactory Example Hibernate 5 Annotation Example How to download Hibernate 5.x? Hibernate 5 Features Hibernate 5 Tutorials Learning Hibernate ORM - Free Training/Tutorial videos of Hibernate ORM with Java How to write hello world example program in Hibernate? How to create one to one relationship in Hibernate 4 with Annotation? How to calculate minimum in Hibernate using the min() Function Hibernate ORM 4.2.21.Final Released - Create CURD application in latest Hibernate Hibernate ORM 4.2.21 Tutorial - Learn Hibernate ORM Framework Hibernate Error: Failed to create sessionFactory object.java.lang.NoClassDefFoundError How to create Hibernate Project in Eclipse? Examples of Hibernate Criteria Query Hibernate ORM 4.3.6.Final released Hibernate ORM 4.2.14.Final released Hibernate 4.3.4 Released: Hibernate 4.3.4.Final Maven dependency Hibernate association and join example Learn Hibernate programming with Examples Introduction to Hibernate Framework Hibernate Tutorial: Learn Hibernate with examples Hibernate 4.3 Hello World: Example Hibernate ORM 4.3.1.Final released How to create SessionFactory in Hibernate 4.3.1? Hibernate 4 Hello World: Example of Hello World program Hibernate 4 create Session Factory: Example of creating Session Factory in Hibernate 4 Hibernate 4.3 and JPA 2.1 Example What is Hibernate in Java? Hibernate Overview and Architecture What is JPA 2.1? Hibernate 4.3.0.Final Maven dependency Hibernate 4.3 ORM Features Hibernate 4.3 Tutorial Hibernate Criteria average example Hibernate Criteria load all objects from table Hibernate Criteria Hibernate ORM 4.3.0.Final released Hibernate beginner tutorial Hibernate Session.delete() Example Hibernate save or update method example Hibernate Load Example Hibernate save Example - Rose India Hibernate 4 tutorials
Ads

In this video you will learn why this error comes in the Hibernate project and how to solve the error? While working on a Hibernate/Java based after update of some of the jar file of the old version of Hibernate to new version of Hibernate this error occurred.

This is the runtime error and Hibernate application was not starting, so I searched and found that the error was due to unavailability of the dom4j jar file.

I checked the Hibernate download by extracting the zip file and found the dom4j-1.6.1.jar. After adding this jar file into the project error was resolved.

My project is actually based on the xml configuration file and Hibernate requires this jar file for parsing the xml file.

Following error was coming before adding the dom4j-1.6.1.jar file into project:

Failed to create sessionFactory object.java.lang.NoClassDefFoundError: org/dom4j/DocumentException
Exception in thread "main" java.lang.NullPointerException
at net.roseindia.PersonDetail.main(PersonDetail.java:43)

Here is the video tutorial which explains you how to solve the error:

In this video you will see the steps to resolve the error by adding the dom4j-1.6.1.jar file into the project and then run the Hibernate application.

Check more tutorials at:

Advertisements

Share on Google+Share on Google+

Hibernate Error: Failed to create sessionFactory object.java.lang.NoClassDefFoundError

Posted on: August 16, 2015 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

Ads
 

Discuss: Hibernate Error: Failed to create sessionFactory object.java.lang.NoClassDefFoundError  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads