2010-12-02 99 views
0

我在使用弹簧配置启动服务器时遇到问题。我有以下错误我在使用弹簧配置启动服务器时遇到问题。我正在使用Zk弹簧

我使用的弹簧,ZK我用zkspring核心3.0RC

ERROR: org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'zkTypePropertyEditor': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.util.HashMap' to required type 'java.util.Map' for property 'customEditors'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.Class] to required type [java.lang.String] for property 'customEditors[class java.lang.Class]': no matching editors or conversion strategy found at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) ...

感谢

+0

向我们展示您的配置 – skaffman 2010-12-02 10:59:16

回答

0

我们有同样的问题与Spring 3.1.0-使用Apache CXF 2.7.4发布:

org.springframework.beans.factory.BeanCreationException:在类路径资源[DoMappings/EAI/do-contact-mapping.xml]中定义的名称为'Contact'的bean创建时出错:Initializatio豆的n失败;嵌套异常是org.springframework.beans.ConversionNotSupportedException:未能将类型'java.util.LinkedHashMap'的属性值转换为属性'doFieldNameToDsFieldNameMap'所需的类型'java.util.Map';嵌套异常是java.lang.IllegalStateException:无法将属性'doFieldNameToDsFieldNameMap [name]'的类型[java.lang.String]的值转换为所需的类型[java.util.Map]:未找到匹配的编辑器或转换策略

我们不得不切换到Spring 3.1.1-RELEASE来解决这个问题。