2010-12-02 105 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來解決這個問題。