Environment
- Work is based on Sakai v2.3.x
- We are using our Sakai UCD mini: https://mware.ucdavis.edu/svn/ucd-sakai/sakai/branches/sakai_mini_2-3-x/
Work Blog
11-28-2006
- Added v2.0.1 spring and spring-mock JARs to our maven repository. To access our repository, edit your build.properties:
maven.repo.remote=http://source.sakaiproject.org/maven/,http://svn.ucdavis.edu/maven/,http://www.ibiblio.org/maven2/ maven.tomcat.home=/home/thomas/local/tomcat/ maven.compile.source = 1.5 maven.compile.target = 1.5
- Modify master/project.properties
# The Springframework version we are using sakai.spring.groupId=org.springframework sakai.spring.artifactId=spring sakai.spring.version=2.0.1 sakai.spring.mock.artifactId=spring-mock sakai.spring.mock.version=2.0.1
- First running "maven sakai" generated the following error:
/home/thomas/sakai_mini_2-3-x-spring2/db/db-impl/ext/src/java/org/sakaiproject/springframework/orm/hibernate/AddableSessionFactoryBean.java:60: getBeanDefinitionNames() in org.springframework.beans.factory.ListableBeanFactory cannot be applied to (java.lang.Class<org.sakaiproject.springframework.orm.hibernate.AdditionalHibernateMappings>) String[] names = applicationContext.getBeanDefinitionNames(AdditionalHibernateMappings.class);
- Replacing getBeanDefinitionNames with getBeanNamesForType
// String[] names = applicationContext.getBeanDefinitionNames(AdditionalHibernateMappings.class); String[] names = applicationContext.getBeanNamesForType(AdditionalHibernateMappings.class);
- There is also a comment stating:
// this method is deprecated, but for some reason, // stuff doesn't work with the replacement
- There is also a comment stating: