Hi,

I've got some problem with sharing Ehcache between two applications within
one Tomcat instance.
I've tried f a v's solution but unfortunatelly it doesn't work for me and I
am wondering if something changed from the last 2 years.

This is what I am using now:
1. Apache Shiro 1.2.0
2. Ehcache 2.5.2
3. Apache Tomcat 6.0.35

I've put ehcache-core-2.5.2.jar in Tomcat's lib folder and
shiro-ehcache-1.2.0.jar in the projects' classpath.

After running the second application f a v's solution gives me such error:

org.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 necessary
2. Shutdown the earlier cacheManager before creating new one with same name.

Any ideas?

--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Shiro-and-multiple-wars-within-the-same-Servlet-Container-tp5560737p7577555.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to