Springmvc中配置ehcache遇到错误Another CacheManager with same name
来源:互联网 发布:gta5优化怎么样 编辑:程序博客网 时间:2024/06/14 09:02
Caused by: net.sf.ehcache.CacheException: Another CacheManager with same name '' already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
2. Shutdown the earlier cacheManager before creating new one with same name.
The source of the existing CacheManager is: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:628)
at net.sf.ehcache.CacheManager.init(CacheManager.java:392)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:270)
at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:157)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1625)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1562)
1. Use one of the CacheManager.create() static factory methods to reuse same CacheManager with same name or create one if necessary
2. Shutdown the earlier cacheManager before creating new one with same name.
The source of the existing CacheManager is: DefaultConfigurationSource [ ehcache.xml or ehcache-failsafe.xml ]
at net.sf.ehcache.CacheManager.assertNoCacheManagerExistsWithSameName(CacheManager.java:628)
at net.sf.ehcache.CacheManager.init(CacheManager.java:392)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:270)
at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:157)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1625)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1562)
... 121 more
这个错误在windows的tomcat里,没有显示;但是部署到linux系统之后,就出现了,导致无法正常启动!下面是解决方案
这个是ehcache 配置问题<!-- Ehcache library setup --> <bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" p:shared="true"/>
1 0
- Springmvc中配置ehcache遇到错误Another CacheManager with same name
- Ehcache依赖版本问题:Another CacheManager with same name 'es' already exists in the same VM.
- Ehcache配置时出错- Another unnamed CacheManager already exists in the same VM. Please provide unique name
- 遇到的问题-----The project contains another dependency with the same archive name
- net.sf.ehcache.CacheException: Another unnamed CacheManager already exists in the same VM.
- Another unnamed CacheManager already exists in the same VM (ehCache 2.5) 解决办法
- ehcache中CacheManager.create()崩溃遇到的问题,解决方案
- The project contains another dependency with the same archive name.
- 在整合springmvc+mybatis+ecache时候报错如下: Another unnamed CacheManager already exists in the same VM.
- CacheManager.create和springmvc ehcache 冲突
- Another unnamed CacheManager already exists in the same VM
- Another unnamed CacheManager already exists in the same VM.解决方法
- Another unnamed CacheManager already exists in the same VM
- Another unnamed CacheManager already exists in the same VM.解决方法
- SpringMVC 中ehCache简单配置
- Ehcache配置详解及CacheManager使用
- Ehcache配置详解及CacheManager使用
- Ehcache配置详解及CacheManager使用
- 无笔不看书,强制放慢你的阅读速度
- [LeetCode] Construct Binary Tree from Inorder and Postorder Traversal
- [LeetCode 79]Word Search
- 面向对象 继承(extends)
- C++ 异常处理(二)
- Springmvc中配置ehcache遇到错误Another CacheManager with same name
- 没备份的情况下,误删除数据文件的恢复
- 杭电 HDU ACM 圆桌会议
- FFmpeg常用基本命令
- Unity Mathf 数学运算(C#)
- 如何封装RESTful Web Service
- LeetCode - Intersection of Two Linked Lists
- poj 3911 Internet Service Providers 解一元二次方程
- MySQL触发器Trigger实例篇