Another unnamed CacheManager already exists in the same VM (ehCache 2.5)

前端 未结 17 1940
囚心锁ツ
囚心锁ツ 2020-11-30 20:41

This is what happens when I run my junit tests...

Another CacheManager with same name \'cacheManager\' already exists in the same VM. Please 
provide unique          


        
17条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 21:19

    You may also try to set name"xxx" on your ehcache.xml configuration (on the ehcache element).

    That did the trick for me, as I think I had another cache configuration lurking in one of the modules of my app.

    The shared solution also works, but I don't know the far-ranging implications of that.

    • http://forums.terracotta.org/forums/posts/list/6495.page
    • https://norrisshelton.wordpress.com/2012/03/08/spring-3-1-caching-abstraction-with-ehcache/

提交回复
热议问题