Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Spring 2, Ehcache and Hibernate

843859Jan 19 2008 — edited Nov 20 2014
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 17 2008
Added on Jan 19 2008
14 comments
347 views