You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Cristian Retegan <cr...@nl.swets.com> on 2005/07/08 09:43:56 UTC

JCS migration from version 1.0 to 1.2.6.5 - problems!!!

Hello,

 

I have problems migrating JCS to version 1.2.6.5. JCS 1.0 is used in a J2EE
application and works fine. I've replaced the JCS jar with the latest
version1.2.6.5. At runtime the following log is written in my console:

 

2005-07-08 09:22:58,437 [Servlet.Engine.Transports : 0] DEBUG
org.apache.jcs.engine.control.CompositeCacheManager  - Instance is null,
creating with default config 

2005-07-08 09:22:58,453 [Servlet.Engine.Transports : 0] DEBUG
org.apache.jcs.engine.control.CompositeCacheManager  - Creating cache
manager from config file: /cache.ccf 

2005-07-08 09:22:58,468 [Servlet.Engine.Transports : 0] DEBUG
org.apache.jcs.engine.control.CompositeCacheManager  - File contained 22
properties 

 

 

Even if, it seems that the cache.ccf is found and read successfully, no
region is found (JCSAdmin.jsp shows no regions). 

 

commons-lang and commons-logging jars are in the classpath.

 

 

The last configuration file I've tried is:

 

# DEFAULT CACHE REGION   

 

jcs.default=

jcs.default.cacheattributes=

    org.apache.jcs.engine.CompositeCacheAttributes

jcs.default.cacheattributes.MaxObjects=1000

jcs.default.cacheattributes.MemoryCacheName=

    org.apache.jcs.engine.memory.lru.LRUMemoryCache

 

# PRE-DEFINED CACHE REGIONS   

 

jcs.region.testCache1=

jcs.region.testCache1.cacheattributes=

    org.apache.jcs.engine.CompositeCacheAttributes

jcs.region.testCache1.cacheattributes.MaxObjects=1000

jcs.region.testCache1.cacheattributes.MemoryCacheName=

    org.apache.jcs.engine.memory.lru.LRUMemoryCache

jcs.region.testCache1.cacheattributes.UseMemoryShrinker=true

jcs.region.testCache1.cacheattributes.MaxMemoryIdleTimeSeconds=3600

jcs.region.testCache1.cacheattributes.ShrinkerIntervalSeconds=60

jcs.region.testCache1.cacheattributes.MaxSpoolPerRun=500

jcs.region.testCache1.elementattributes=org.apache.jcs.engine.ElementAttribu
tes

jcs.region.testCache1.elementattributes.IsEternal=false

 

 

 

Please help!

 

Thanks in advance!

 

 

Cristian.