ehcache版本问题
来源:互联网 发布:游戏窗口化软件 编辑:程序博客网 时间:2024/05/23 20:59
问题
rg.apache.shiro.cache.CacheException: net.sf.ehcache.CacheException: Another unnamed CacheManager 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 necessary2. Shutdown the earlier cacheManager before creating new one with same name.
答案
我靠,终于解决了,原来是ehcache版本的问题,ehcache-core2.5.0之前的版本不会出问题,2.5.0及之后会报这个异常,我选了个ehcache-core2.4.8的好使。
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>2.4.8</version>
</dependency>
看官方的文档说明:
Versions of Ehcache before version 2.5 allowed any number of CacheManagers with the same name (same configuration resource) to exist in a JVM.
Ehcache 2.5 and higher does not allow multiple CacheManagers with the same name to exist in the same JVM. CacheManager() constructors creating non-Singleton CacheManagers can violate this rule
0 0
- ehcache版本问题
- ehcache版本问题导致的一个错误
- ehcache版本问题导致的一个错误edu.emory.mathcs.backport...
- Ehcache依赖版本问题:Another CacheManager with same name 'es' already exists in the same VM.
- Hibernate4 + Ehcache 配置问题
- Hibernate4 + Ehcache 配置问题
- Hibernate4 + Ehcache 配置问题
- Hibernate4 + Ehcache 配置问题
- ehcache缓存问题
- Hibernate4 + Ehcache 配置问题
- Ehcache缓存的清理问题
- ehcache cacheManager重复的问题
- Shiro与EHCache冲突问题
- 解决ehcache的UpdateChecker问题
- Ehcache
- Ehcache
- ehcache
- ehcache
- java字符串与整数之间的互相转换
- 一步步学spark之一scala面向对象的文件访问2.8
- mysql主主搭建
- MySQL配置多实例
- JS判断是手机还是电脑
- ehcache版本问题
- 关于CSS列表list-style-type的颜色和大小控制
- android禁止屏幕旋转、oncreate不会重新被调用等问题
- Mac上的抓包工具Charles
- mac下修改jenkins 系统的端口
- java.lang.NoClassDefFoundError:org/apache/commons/lang/exception/NestableRuntimeException
- 图像处理和计算机视觉中的经典论文(部分)
- C语言学习心得一:__stdcall、__cdcel和__fastcall三者的区别(三者是对编译器层面的影响,对程序业务逻辑不影响)
- 使用android进行Socket通信实现多人聊天应用