[Building Sakai] Spring 3

David Wafula davidwaf at gmail.com
Tue Jun 21 05:46:09 PDT 2011


Thanks, looks like Spring 3 is off limits for now. I even tried
replacing Spring
2.5.6 in tomcat/shared/lib with Spring 3 libs, just to see what would
happen...and ran into alot of trouble.

regards,
david.

On Tue, Jun 21, 2011 at 2:35 PM, Shun Zhang <shun.zhang at aispeech.com> wrote:

> 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"
>>
>
>
>
> --
> Shun Zhang
> Project Manager
> AI Speech Ltd. (China)                                             AI
> Speech Ltd. (UK)
> No. 258, Renai Road, Suzhou Industrial Park           16 Quainton Close
> Suzhou, 215123, P. R. China                                    Cambridge,
> CB5 8LR, UK
> Email: shun.zhang at aispeech.com
>



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


More information about the sakai-dev mailing list