蓝羊羊的gravatar头像
蓝羊羊 2017-02-21 11:21:09

spring整合Jedis配置后在tomcat下运行为什么报错?

tomcat 启动报错,不知道啥意思呢,大神帮帮忙,谢谢!!

2017-02-21 10:36:31,055 WARN  [springframework.web.context.support.XmlWebApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.interceptor.CacheInterceptor#0': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type [cn.yihuzhijia.app.common.security.shiro.cache.JedisCacheManager] to required type [org.springframework.cache.CacheManager] for property 'cacheManager'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [cn.yihuzhijia.app.common.security.shiro.cache.JedisCacheManager] to required type [org.springframework.cache.CacheManager] for property 'cacheManager': no matching editors or conversion strategy found
2017-02-21 10:36:31,064 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.interceptor.CacheInterceptor#0': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type [cn.yihuzhijia.app.common.security.shiro.cache.JedisCacheManager] to required type [org.springframework.cache.CacheManager] for property 'cacheManager'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [cn.yihuzhijia.app.common.security.shiro.cache.JedisCacheManager] to required type [org.springframework.cache.CacheManager] for property 'cacheManager': no matching editors or conversion strategy found
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:751)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type [cn.yihuzhijia.app.common.security.shiro.cache.JedisCacheManager] to required type [org.springframework.cache.CacheManager] for property 'cacheManager'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [cn.yihuzhijia.app.common.security.shiro.cache.JedisCacheManager] to required type [org.springframework.cache.CacheManager] for property 'cacheManager': no matching editors or conversion strategy found
    at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:591)
    at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:603)
    at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1532)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1491)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1231)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
    ... 20 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type [cn.yihuzhijia.app.common.security.shiro.cache.JedisCacheManager] to required type [org.springframework.cache.CacheManager] for property 'cacheManager': no matching editors or conversion strategy found
    at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:306)
    at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:576)
    ... 26 more

所有回答列表(3)
sayHelloWorld的gravatar头像
sayHelloWorld  LV22 2017年2月21日

Failed to convert property value of type [cn.yihuzhijia.app.common.security.shiro.cache.JedisCacheManager] to required type [org.springframework.cache.CacheManager] for property 'cacheManager'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [cn.yihuzhijia.app.common.security.shiro.cache.JedisCacheManager] to required type [org.springframework.cache.CacheManager] for property 'cacheManager': no matching editors or conversion strategy found

注入失败,贴配置文件 不然别人怎么帮你找错误

bigroc的gravatar头像
bigroc  LV2 2017年2月21日

yanluya的gravatar头像
yanluya  LV2 2017年2月25日

应改是配置信息不完整

最近浏览
何为人 2021年4月30日
暂无贡献等级
zjy126789 2021年1月25日
暂无贡献等级
a6227662  LV7 2018年5月30日
a809691543  LV1 2018年4月22日
15208297593 2018年3月15日
暂无贡献等级
W24663209  LV2 2018年3月6日
575515608  LV1 2018年1月29日
nxq_zdm  LV10 2017年4月11日
liuliu  LV23 2017年3月27日
lichuangen  LV1 2017年3月18日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友