I am running the Grails application using ehcache for my 2nd level Cache and it works. I installed plugin ehcacheplugin + cacheand then not. I tried almost all the solutions from the Internet and did not find the solution that I get Another unnamed CacheManager already exists in the same VM.
One of the possible solutions is to install p:shared=truein EhCacheManagerFactoryBean, it works if I use the old plugin "Springcache plugin from grails", but with the new plugin they use a modified version of this manager and the sharing property is not available.
I tried to define a new ehcache.xmlfile, but still can not put inside the new name for this cache manager.
I tried changing the class cache.providerinside mine DataSource.groovyto use each other EhCacheProvider, for example Singleton.
Needless to say, I tested a different name using DSL in different places, but still no luck.
In the end, I use the old spring cache plugin, which is deprecated. Can anyone help?
I am using Grails 2.0.3 and ehcache-core:2.5.3.
source
share