error java.lang.ClassNotFoundException: org.springframework.web.multipart.MultipartResolver when starting up textbook tool

Description

This is a problem when deploying tbook trunk with Sakai 2.9 code base. We've seen lots of errors like the following in the app log file:

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.multipart.commons.CommonsMultipartResolver] for bean with name 'commonsMultipartResolver' defined in class path resource [conf/sakai-applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.multipart.commons.CommonsMultipartResolver
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)
....
Caused by: java.lang.ClassNotFoundException: org.springframework.web.multipart.MultipartResolver
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
... 65 more

The cause of it is spring-webmvc is no longer in the shared any more. Need to declare the dependency inside corresponding pom.xml file.

Attachments

1

Activity

Show:

Zhen Qian October 16, 2012 at 12:57 PM

Beth,

I have attached a patch file here. Please review and check into tbook trunk if correct.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created October 16, 2012 at 12:55 PM
Updated December 7, 2012 at 10:45 AM
Resolved December 7, 2012 at 10:45 AM