|
From: Matt R. <mr...@gm...> - 2006-03-02 22:10:25
|
Make sure you're referencing org.springframework.orm.hibernate3 and not org.springframework.orm.hibernate. HTH, Matt On 3/2/06, Raghu Ramakrishnan <rag...@ho...> wrote: > > > > > > Hi Spring developers, > > > I am trying to create an application using hibernate and spring. I have s= et > hibernate3.jar and all the files under spring 1.2.7 in my class path. I a= m > 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 bea= n > 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 change= d > 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 langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |