[Building Sakai] Spring 3

David Wafula davidwaf at gmail.com
Tue Jun 21 05:27:16 PDT 2011


Hi all,

We are developing a custom tool, in Sakai 2.8.0, and would really like to
stick to spring 3, but just noticed that if i bundle the spring 3 libs with
the tool, tomcat wont start:

org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.sakaiproject.accountvalidator.dao.impl.ValidationLogicDaoTarget'
defined in file
[/dwaf/software/tomcat/apache-tomcat-5.5.33/components/accountvalidator-pack/WEB-INF/spring-hibernate.xml]:
Cannot resolve reference to bean
'org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory' while
setting bean property 'sessionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory'
defined in file
[/dwaf/software/tomcat/apache-tomcat-5.5.33/components/sakai-kernel-component/WEB-INF/db-components.xml]:
Invocation of init method failed; nested exception is
org.hibernate.HibernateException: No local DataSource found for
configuration - 'dataSource' property must be set on LocalSessionFactoryBean

......
caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory'
defined in file
[/dwaf/software/tomcat/apache-tomcat-5.5.33/components/sakai-kernel-component/WEB-INF/db-components.xml]:
Invocation of init method failed; nested exception is
org.hibernate.HibernateException: No local DataSource found for
configuration - 'dataSource' property must be set on LocalSessionFactoryBean
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
....

If i remove the tool, it starts fine. Seeing we are new to tool development,
not sure what is going on with accountvalidator-pack, as shown in logs. Our
tool doesn't touch accountvalidator anywhere.

Some pointers please...

Regards,

-- 
David Wafula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110621/d78c9855/attachment.html 


More information about the sakai-dev mailing list