File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes MappingException occured Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "MappingException occured" Watch "MappingException occured" New topic
Author

MappingException occured

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3334

Hi.
My application uses Spring and Hibernate.
The application has the following structure :

Here is some snippets from rentContext.xml :

But when running the application, I got the following exception :
Error creating bean with name 'sessionFactory' defined in class path resource [RentABike-context.xml]: Initialization of bean failed; nested exception is net.sf.hibernate.MappingException: org.dom4j.DocumentException: hibernate.sf.net Nested exception: hibernate.sf.net
My application's ant build files includes all the requied jars and config dir inside class.path property.
Any ideas ?
James Zhang
Ranch Hand

Joined: Sep 06, 2002
Posts: 30
Did you include the COMPLETE error message in the post? It seems to me that the root error is not shown there.
 
 
subject: MappingException occured
 
Threads others viewed
Hibernate insert fails due to generate key failure
Problem with look up JNDI on JBOSS
Hiberante transaction in Spring
How to integrate Hibernate Search w/ Spring
Error while Proxying DAO Classes
MyEclipse, The Clear Choice