I recently upgraded a project from Spring 1.2 to Spring 2.5.1. The project uses Hibernate and Ehcache. I believe the new versions are Hibernate 3.2.5 and Ehcache 1.3. When I run the application , I get repeated warnings like:
WARN net.sf.ehcache.CacheManager - Creating a new instance of CacheManager usin
g the diskStorePath "C:\DOCUME~1\PKW\LOCALS~1\Temp\" which is already used by an
existing CacheManager.
The source of the configuration was InputStream weblogic.utils.zip.SafeZipFileIn
putStream@1130c7f.
The diskStore path for this CacheManager will be set to C:\DOCUME~1\PKW\LOCALS~1
\Temp\\ehcache_auto_created_1200758593437.
To avoid this warning consider using the CacheManager factory methods to create
a singleton CacheManager or specifying a separate ehcache configuration (ehcache
.xml) for each CacheManager instance.
As far as I know, I only should have one instance of the cache in this app, I tried using net.sf.ehcache.hibernate.SingletonEhCacheProvider, but that hasn't stopped the warnings.
Anyone have any suggestions?