[MAGNOLIA-1657] EHCache implementation outdated and unable to use Magnolia based configuration Created: 05/Aug/07  Updated: 23/Jan/13  Resolved: 08/Nov/07

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 3.5 RC1

Type: Bug Priority: Major
Reporter: zam6ak Assignee: Fabrizio Giustina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

3.1-SNAPSHOT
JBoss 4.0.5


Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

When trying to switch cache implementation on public instance to

info.magnolia.cms.cache.ehcache.CacheImpl

following warnings show up in the log (there seems to be several issues outlined):

INFO info.magnolia.cms.util.FactoryUtil$ObservedObjectFactory 05.08.2007 14:08:48 – info.magnolia.cms.exchange.ActivationManager reloaded [ /server/activation ]
INFO info.magnolia.cms.cache.BaseCacheManager 05.08.2007 14:09:53 – Stopping CacheManager...
INFO info.magnolia.cms.cache.BaseCacheManager 05.08.2007 14:09:53 – CacheManager is now stopped.
INFO info.magnolia.cms.cache.BaseCacheManager 05.08.2007 14:09:53 – Starting CacheManager...
WARN net.sf.ehcache.Cache 05.08.2007 14:09:53 – An API change between ehcache-1.1 and ehcache-1.2 results in the persistence path being set to java.io.tmp when the ehcache-1.1 constructor is used. Please change to the 1.2 constructor
DEBUG net.sf.ehcache.CacheManager 05.08.2007 14:09:53 – Creating new CacheManager with default config
DEBUG net.sf.ehcache.CacheManager 05.08.2007 14:09:53 – Configuring ehcache from classpath.
WARN net.sf.ehcache.config.ConfigurationFactory 05.08.2007 14:09:53 – No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/MYCOMPANY/webapp/deploy/magnoliaPublic.war/WEB-INF/lib/ehcache-1.2.4.jar!/ehcache-failsafe.xml
DEBUG net.sf.ehcache.config.ConfigurationFactory 05.08.2007 14:09:53 – Configuring ehcache from URL: jar:file:/C:/MYCOMPANY/webapp/deploy/magnoliaPublic.war/WEB-INF/lib/ehcache-1.2.4.jar!/ehcache-failsafe.xml
DEBUG net.sf.ehcache.config.ConfigurationFactory 05.08.2007 14:09:53 – Configuring ehcache from InputStream
DEBUG net.sf.ehcache.config.DiskStoreConfiguration 05.08.2007 14:09:53 – Disk Store Path: C:\DOCUME~1\MYUSERNAME\LOCALS~1\Temp\
DEBUG net.sf.ehcache.config.ConfigurationHelper 05.08.2007 14:09:53 – No CacheManagerEventListenerFactory class specified. Skipping...
DEBUG net.sf.ehcache.config.ConfigurationHelper 05.08.2007 14:09:53 – No CachePeerListenerFactoryConfiguration specified. Not configuring a CacheManagerPeerListener.
DEBUG net.sf.ehcache.config.ConfigurationHelper 05.08.2007 14:09:53 – No CachePeerProviderFactoryConfiguration specified. Not configuring a CacheManagerPeerProvider.
DEBUG net.sf.ehcache.config.ConfigurationHelper 05.08.2007 14:09:53 – No BootstrapCacheLoaderFactory class specified. Skipping...
DEBUG net.sf.ehcache.store.DiskStore 05.08.2007 14:09:53 – Index file C:\DOCUME~1\MYUSERNAME\LOCALS~1\Temp\.index created successfully
DEBUG net.sf.ehcache.store.DiskStore 05.08.2007 14:09:53 – Index file dirty or empty. Deleting data file .data
DEBUG net.sf.ehcache.store.MemoryStore 05.08.2007 14:09:53 – Initialized net.sf.ehcache.store.LruMemoryStore for
DEBUG net.sf.ehcache.store.LruMemoryStore 05.08.2007 14:09:53 – Cache: Using SpoolingLinkedHashMap implementation
DEBUG net.sf.ehcache.Cache 05.08.2007 14:09:53 – Initialised cache:
INFO info.magnolia.cms.cache.BaseCacheManager 05.08.2007 14:09:53 – CacheManager is now running.



 Comments   
Comment by Fabrizio Giustina [ 22/Aug/07 ]

The dependency on ehcache have been updated to 1.3.0 and Cache manager modified.
You should not get the "An API change between... " warn message anymore, other logs are only debug logs.
I am leaving this open since it needs to be tested properly

Comment by Fabrizio Giustina [ 08/Nov/07 ]

ehcache implementation now works properly

Generated at Mon Feb 12 03:29:03 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.