|Equinox+Spring+Hibernate [message #677701]
||Thu, 09 June 2011 03:59
| Jose Hernandez
Registered: June 2011
I am integrating Equinox with Spring DM and also JDBC. It runs!
However I would like to add Hibernate. But when I try it, an error occurs. If Hibernate is not integrated in Spring the error says java.lang.ClassNotFoundException: org.dom4j.DocumentException in line Configuration cfg = new Configuration(); But I have in the classpath dom4j jar.
Else if I use Spring+Hibernate the error is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.orm.hibernate3.LocalSessionFactoryBean] for bean with name 'sessionFactory' defined in class path resource [service/service-dao.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org.springframework.orm.hibernate3.LocalSessionFactoryBean not found from bundle [ZBGWTApp (ZBGWTApp;singleton:=true)]
I do not know what does it happen? I import/export the packages. Could someone help me?Or could someone tell me a tutorial/manual to integrate it on OSGi Equinox?
Powered by FUDForum
. Page generated in 0.03922 seconds