Discussion:
ehCache CacheManager warning
shrestha
2009-11-14 21:49:55 UTC
Permalink
Upgrading to Grails 1.2M4, I get this message when running Grails:

net.sf.ehcache.CacheManager detectAndFixDiskStorePathConflict
WARNING: Creating a new instance of CacheManager using the diskStorePath
"C:\Users\ROSHAN~1\AppData\Local\Temp\/_logmedoCache" which is already used
by an existing CacheManager.
The source of the configuration was classpath.
The diskStore path for this CacheManager will be set to
C:\Users\ROSHAN~1\AppData\Local\Temp\/_logmedoCache\ehcache_auto_created_1258235057657.
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.

Searching for CacheManager, I do see it being used by
AcegiGrailsPlugin.groovy
--
View this message in context: http://old.nabble.com/ehCache-CacheManager-warning-tp26354172p26354172.html
Sent from the grails - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
shrestha
2009-11-14 22:09:07 UTC
Permalink
I do have "ehCache.xml" under "conf", which I am using to configure a cache
that i am using in some parts of my code. Upon deleting this file, and
disabling my caching code, the messages I get on startup are:

Nov 14, 2009 5:04:31 PM net.sf.ehcache.config.ConfigurationFactory
parseConfiguration
WARNING: No configuration found. Configuring ehcache from
ehcache-failsafe.xml found in the classpath:
jar:file:/C:/Users/Roshan%20Shrestha/.ivy2/cache/net.sf.ehcache/ehcache/jars/ehcache-1.6.1.jar!/ehcache-failsafe.xml
Nov 14, 2009 5:04:33 PM net.sf.ehcache.config.ConfigurationFactory
parseConfiguration
WARNING: No configuration found. Configuring ehcache from
ehcache-failsafe.xml found in the classpath:
jar:file:/C:/Users/Roshan%20Shrestha/.ivy2/cache/net.sf.ehcache/ehcache/jars/ehcache-1.6.1.jar!/ehcache-failsafe.xml
Nov 14, 2009 5:04:34 PM net.sf.ehcache.CacheManager
detectAndFixDiskStorePathConflict
WARNING: Creating a new instance of CacheManager using the diskStorePath
"C:\Users\ROSHAN~1\AppData\Local\Temp\" which is already used by an existing
CacheManager.
The source of the configuration was classpath.
The diskStore path for this CacheManager will be set to
C:\Users\ROSHAN~1\AppData\Local\Temp\\ehcache_auto_created_1258236274002.
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.
--
View this message in context: http://old.nabble.com/ehCache-CacheManager-warning-tp26354172p26354340.html
Sent from the grails - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Loading...