2011-01-12 18:39:33,953 [org.springframework.web.context.ContextLoader]-[ERROR] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mateService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy17] to required type [com.cdjj.strive.schoolmate.dao.impl.GetSPClassMateImpl] for property 'getclass'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy17] to required type [com.cdjj.strive.schoolmate.dao.impl.GetSPClassMateImpl] for property 'getclass': no matching editors or conversion strategy found
Caused by:
org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy17] to required type [com.cdjj.strive.schoolmate.dao.impl.GetSPClassMateImpl] for property 'getclass'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy17] to required type [com.cdjj.strive.schoolmate.dao.impl.GetSPClassMateImpl] for property 'getclass': no matching editors or conversion strategy found
Caused by:
java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy17] to required type [com.cdjj.strive.schoolmate.dao.impl.GetSPClassMateImpl] for property 'getclass': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mateService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy17] to required type [com.cdjj.strive.schoolmate.dao.impl.GetSPClassMateImpl] for property 'getclass'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy17] to required type [com.cdjj.strive.schoolmate.dao.impl.GetSPClassMateImpl] for property 'getclass': no matching editors or conversion strategy found
Caused by:
org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy17] to required type [com.cdjj.strive.schoolmate.dao.impl.GetSPClassMateImpl] for property 'getclass'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy17] to required type [com.cdjj.strive.schoolmate.dao.impl.GetSPClassMateImpl] for property 'getclass': no matching editors or conversion strategy found
Caused by:
java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy17] to required type [com.cdjj.strive.schoolmate.dao.impl.GetSPClassMateImpl] for property 'getclass': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
找了两天都找不出原因
总以为自己的配置文件写错
最后才发现自己少了个JAR包没加...http://fxltsbl0306.blog.163.com/blog/static/6634707620088296029862/
希望对你有所帮助