|
From: Raghu R. <rag...@ho...> - 2006-03-02 21:54:10
|
<html><div style='background-color:'><P> </P> <P>Hi Spring developers,<BR></P> <P>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:</P> <P>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<BR>java.lang.NoClassDefFoundError: net/sf/hibernate/cfg/NamingStrategy<BR>at java.lang.Class.getDeclaredMethods0(Native Method)</P> <P>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.</P> <P>Raghu</P> <P><BR></P><BR><BR><BR> <DIV> <P> </P></DIV></div></html> |