在ubuntu上面安装xplanner-0.7b7tomcat根本无法启动
报错误如下:
org.springframework.beans.TypeMismatchException: Failed to convert property val
e of type [org.apache.commons.collections.map.LinkedMap] to required type [java
util.HashMap] for property 'repositories'
at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessar
(BeanWrapperImpl.java:839)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapp
rImpl.java:584)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapp
rImpl.java:469)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapp
rImpl.java:626)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrap
erImpl.java:653)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrap
erImpl.java:642)
at org.springframework.beans.factory.support.AbstractAutowireCapableBea
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1023)
at org.springframework.beans.factory.support.AbstractAutowireCapableBea
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:824)
at org.springframework.beans.factory.support.AbstractAutowireCapableBea
Factory.createBean(AbstractAutowireCapableBeanFactory.java:345)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBea
(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBea
(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at org.springframework.context.support.AbstractApplicationContext.refre
h(AbstractApplicationContext.java:320)
at org.springframework.web.context.support.AbstractRefreshableWebApplic
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationCo
text(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationCont
xt(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitial
zed(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardConte
t.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:
187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas
.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7
9)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.ja
a:904)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.
ava:867)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:47
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav
:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:44
)
at org.apache.catalina.core.StandardService.start(StandardService.java:
50)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:70
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
[ 2391] ERROR - alina].[localhost].[/xplanner] - Exception sending context i
itialized event to listener instance of class org.springframework.web.context.C
ntextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean wi
h name 'metaRepository' defined in class path resource [spring-beans.xml]: Erro
setting property values; nested exception is org.springframework.beans.Propert
AccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested
propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException:
Failed to convert property value of type [org.apache.commons.collections.map.Li
kedMap] to required type [java.util.HashMap] for property 'repositories']
PropertyAccessExceptionsException (1 errors)
org.springframework.beans.TypeMismatchException: Failed to convert property val
e of type [org.apache.commons.collections.map.LinkedMap] to required type [java
util.HashMap] for property 'repositories'
at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessar
(BeanWrapperImpl.java:839)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapp
rImpl.java:584)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapp
rImpl.java:469)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapp
rImpl.java:626)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrap
erImpl.java:653)
at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrap
erImpl.java:642)
at org.springframework.beans.factory.support.AbstractAutowireCapableBea
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1023)
at org.springframework.beans.factory.support.AbstractAutowireCapableBea
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:824)
at org.springframework.beans.factory.support.AbstractAutowireCapableBea
Factory.createBean(AbstractAutowireCapableBeanFactory.java:345)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBea
(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBea
(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons(DefaultListableBeanFactory.java:275)
at org.springframework.context.support.AbstractApplicationContext.refre
h(AbstractApplicationContext.java:320)
at org.springframework.web.context.support.AbstractRefreshableWebApplic
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationCo
text(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationCont
xt(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitial
zed(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardConte
t.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:
187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas
.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7
9)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.ja
a:904)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.
ava:867)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:47
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav
:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:44
)
at org.apache.catalina.core.StandardService.start(StandardService.java:
50)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:70
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
[ 2735] INFO - til.migration.MigrationProcess - System up-to-date. No migr
tion tasks have been run.
2010-11-20 15:33:12 org.apache.catalina.core.StandardContext start
开始没有关注错误老以为安装步骤错了,搞了几个小时,浪费时间啊。
其实问题关键在
org.springframework.beans.TypeMismatchException: Failed to convert property valu
e of type [org.apache.commons.collections.map.LinkedMap] to required type [java.
util.HashMap] for property 'repositories'
找到xplanner/WEB-INF/classes/spring-beans.xml 73行
添加
详细参照下面修改后的bean
xplanner-0.7b7在ubuntu上面的安装
最新推荐文章于 2025-12-16 22:27:03 发布
解决在Ubuntu系统中安装XPlanner-0.7b7Tomcat版本时遇到的启动失败问题,错误提示涉及Spring框架转换LinkedMap到HashMap类型不匹配。
3444

被折叠的 条评论
为什么被折叠?



