|
From: Juergen H. <ju...@in...> - 2006-03-02 22:13:55
|
You're probably simply using the wrong Hibernate support package. You need the "org.springframework.orm.hibernate3" package, not "org.springframework.orm.hibernate" which you supposedly try to use at present. Make sure that all your imports and bean definitions point to the correct package there. Juergen _____ From: spr...@li... [mailto:spr...@li...] On Behalf Of Raghu Ramakrishnan Sent: Thursday, March 02, 2006 10:54 PM To: spr...@li... Subject: [Springframework-developer] Problem integrating Spring 1.2.7 with hibernate 3 Hi Spring developers, I am trying to create an application using hibernate and spring. I have set hibernate3.jar and all the files under spring 1.2.7 in my class path. I am getting the following error when I try to run the application: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [edu/umn/web/spring/spring-dataaccess.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: net/sf/hibernate/cfg/NamingStrategy java.lang.NoClassDefFoundError: net/sf/hibernate/cfg/NamingStrategy at java.lang.Class.getDeclaredMethods0(Native Method) As per my understanding, the net/sf/hibernate/cfg package has been changed under Hibernate 3. Do I have to add any new jars or do something else to get the application to work. Please help. Raghu ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |