问题描述
[acepherics]INFO[ContainerBackgroundProcessor[StandardEngine[Catalina]]][/acepherics].log(647)|InitializingSpringrootWebApplicationContext[acepherics]ERROR[ContainerBackgroundProcessor[StandardEngine[Catalina]]]ContextLoader.initWebApplicationContext(319)|Contextinitializationfailedorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'xfire.customEditorConfigurer'definedinclasspathresource[org/codehaus/xfire/spring/customEditors.xml]:Initializationofbeanfailed;nestedexceptionisorg.springframework.beans.TypeMismatchException:Failedtoconvertpropertyvalueoftype'java.util.LinkedHashMap'torequiredtype'java.util.Map'forproperty'customEditors';nestedexceptionisjava.lang.IllegalArgumentException:Cannotconvertvalueoftype[org.codehaus.xfire.spring.editors.ServiceFactoryEditor]torequiredtype[java.lang.Class]forproperty'customEditors[org.codehaus.xfire.service.ServiceFactory]':PropertyEditor[org.springframework.beans.propertyeditors.ClassEditor]returnedinappropriatevalueoftype[org.codehaus.xfire.spring.editors.ServiceFactoryEditor]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:299)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:295)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)atorg.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1151)atorg.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:688)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:475)atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4216)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)atorg.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)atorg.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1306)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)atjava.lang.Thread.run(Thread.java:744)Causedby:org.springframework.beans.TypeMismatchException:Failedtoconvertpropertyvalueoftype'java.util.LinkedHashMap'torequiredtype'java.util.Map'forproperty'customEditors';nestedexceptionisjava.lang.IllegalArgumentException:Cannotconvertvalueoftype[org.codehaus.xfire.spring.editors.ServiceFactoryEditor]torequiredtype[java.lang.Class]forproperty'customEditors[org.codehaus.xfire.service.ServiceFactory]':PropertyEditor[org.springframework.beans.propertyeditors.ClassEditor]returnedinappropriatevalueoftype[org.codehaus.xfire.spring.editors.ServiceFactoryEditor]atorg.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:479)atorg.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:505)atorg.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:499)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1456)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1415)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1151)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)...27moreCausedby:java.lang.IllegalArgumentException:Cannotconvertvalueoftype[org.codehaus.xfire.spring.editors.ServiceFactoryEditor]torequiredtype[java.lang.Class]forproperty'customEditors[org.codehaus.xfire.service.ServiceFactory]':PropertyEditor[org.springframework.beans.propertyeditors.ClassEditor]returnedinappropriatevalueoftype[org.codehaus.xfire.spring.editors.ServiceFactoryEditor]atorg.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:260)atorg.springframework.beans.TypeConverterDelegate.convertToTypedMap(TypeConverterDelegate.java:620)atorg.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:205)atorg.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:459)...33more[
解决方案
解决方案二:
请朋友们帮忙看看是什么原因。版本问题吗?