Saturday, December 28, 2013

Exception in thread "main" java.lang.ExceptionInInitializerError

Could not parse mapping document from resource com/ranga/Person.hbm.xml
Exception in thread "main" java.lang.ExceptionInInitializerError

Problem:  
 In Mapping file DTD information is not added or wrong DTD information you are given.

Solution:  
Add the proper DTD information in mapping file(Person.hbm.xml)

0 comments: