Java 使用SpringFramework 4进行SoapVersion转换

Java 使用SpringFramework 4进行SoapVersion转换,java,spring,soap,Java,Spring,Soap,我正在将代码从Spring3移动到4。我得到一个例外: java.lang.IllegalArgumentException: Cannot convert value of type [org.apache.cxf.binding.soap.SoapVersionPropertyEditor] to required type [java.lang.Class] for property 'customEditors[org.apache.cxf.binding.soap.SoapVersio

我正在将代码从
Spring
3移动到4。我得到一个例外:

java.lang.IllegalArgumentException: Cannot convert value of type [org.apache.cxf.binding.soap.SoapVersionPropertyEditor] to required type [java.lang.Class] for property 'customEditors[org.apache.cxf.binding.soap.SoapVersion]': PropertyEditor [org.springframework.beans.propertyeditors.ClassEditor] returned inappropriate value of type [org.apache.cxf.binding.soap.SoapVersionPropertyEditor] at ...
我用它来写以下内容,但它并不能解决我的问题

在我的
servlet.xml
文件中,我添加了:

<bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
    <property name="customEditors">
       <list>
          <bean class="com.company.CustomEditor"/>
       </list>
    </property>
</bean>
如何解决Spring4中的
soapVersion
问题? 我是春天的新手。
谢谢

spring Confiuration文件中,您需要更改xsd版本以解决问题

谢谢您的评论。我所有的spring配置xml都有正确的版本-4.3.xml。问题可能是兼容性问题。我的ApacheCXF版本是2.0,我使用的是SpringFramework4
public class CustomEditor implements PropertyEditorRegistrar {

 @Override
 public void registerCustomEditors(PropertyEditorRegistry registry) {
     registry.registerCustomEditor(SoapVersion.class, new SoapPropertyEditor());
 }
}