[Building Sakai] Spring 3

Shun Zhang aaashun at gmail.com
Tue Jun 21 05:35:53 PDT 2011


Sakai 2.8.0 uses Spring 2.5.6.SEC01, you can find the dependency management
in "master/pom.xml"
https://source.sakaiproject.org/svn/master/tags/sakai-2.8.0/pom.xml

On Tue, Jun 21, 2011 at 8:27 PM, David Wafula <davidwaf at gmail.com> wrote:

> 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
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110621/ff6f566b/attachment.html 


More information about the sakai-dev mailing list