小编Fer*_*A. 的帖子

同一虚拟机中已经存在另一个名为“ cacheManager”的CacheManager

使用ehcache和Spring启动tomcat时收到此错误。

Another CacheManager with same name '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 necessary
2. Shutdown the earlier cacheManager before creating new one with same name.
Run Code Online (Sandbox Code Playgroud)
  • 春季3.1
  • ehcache 2.9.0
  • 没有使用此的测试上下文。
  • 这是一个Web JSF应用程序。

ehcache.xml

         <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="ehcache.xsd"
            updateCheck="true"
            monitoring="autodetect"
            dynamicConfig="true"
            name="ehcacheManager"
            >
        ....

    </ehcache>
Run Code Online (Sandbox Code Playgroud)

cache-context.xml

        <bean …
Run Code Online (Sandbox Code Playgroud)

spring caching ehcache

5
推荐指数
1
解决办法
6701
查看次数

标签 统计

caching ×1

ehcache ×1

spring ×1