I run my Grails application using ehcache for my 2nd level Cache and it works. I installed the ehcache
plugin + cache
plugin and then it doesn't. I tried almost all solutions from the internet and found no solution I keep getting Another unnamed CacheManager already exists in the same VM
.
One of the possible solutions is to set p:shared=true
in the EhCacheManagerFactoryBean
, this works if I use an old plugin "springcache plugin from grails" but with the new plugin they use a modified version of this manager and the property shared is not available.
I tried defining a new ehcache.xml
file but still I can not put inside a new name for this cache manager.
I tried changing the cache.provider
class inside my DataSource.groovy
to use one another EhCacheProvider
such as a Singleton
.
Needless to say, I tested putting a different name using DSL in different places but still no luck.
At the end I'm using the old plugin for spring cache which is deprecated. Can anybody help?
I'm using Grails 2.0.3 and ehcache-core:2.5.3
.