jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Zurke <mis...@zurke.info>
Subject Re: problems getting jcs working
Date Fri, 17 Jun 2005 09:53:04 GMT
right, this was my entire config file. i remember reading that if you 
don't define DC, LTCP jcs will fall back to default values. i have a try 
with your sample. thanx.

Aaron Smuts wrote:
> Please send your entire cache.ccf. 
> 
> This references DC and LTCP but neither are defined. 
> Think of these as log4j appenders.  If you reference
> them, you ahve to define them.
> 
> A complete file would look like this (between the
> dashes):
> 
> -------------------------------
> 
> #############################################################
> ################## DEFAULT CACHE REGION 
> #####################
> # sets the default aux value for any non configured
> caches
> jcs.default=DC,LTCP
> jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.default.cacheattributes.MaxObjects=200001
> jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> jcs.default.cacheattributes.UseMemoryShrinker=true
> jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
> jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
> jcs.default.elementattributes.IsEternal=false
> jcs.default.elementattributes.MaxLifeSeconds=700
> jcs.default.elementattributes.IdleTime=1800
> jcs.default.elementattributes.IsSpool=true
> jcs.default.elementattributes.IsRemote=true
> jcs.default.elementattributes.IsLateral=true
> 
> 
> ##############################################################
> ################## CACHE REGIONS AVAILABLE
> ###################
> # Regions preconfirgured for caching
> jcs.region.testCache1=DC,LTCP
> 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.ShrinkerIntervalSeconds=30
> jcs.region.testCache1.cacheattributes.MaxMemoryIdleTimeSeconds=300
> jcs.region.testCache1.cacheattributes.MaxSpoolPerRun=100
> jcs.region.testCache1.elementattributes=org.apache.jcs.engine.ElementAttributes
> jcs.region.testCache1.elementattributes.IsEternal=false
> jcs.region.testCache1.elementattributes.MaxLifeSeconds=60000
> jcs.region.testCache1.elementattributes.IsLateral=true
> jcs.region.testCache1.elementattributes.IsRemote=true
> 
> 
> ##############################################################
> ################## AUXILIARY CACHES AVAILABLE
> ################
> 
> # TCP lateral with udp discovery
> jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
> jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCacheAttributes
> jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1118
> jcs.auxiliary.LTCP.attributes.PutOnlyMode=true
> jcs.auxiliary.LTCP.attributes.UdpDiscoveryAddr=228.5.6.8
> jcs.auxiliary.LTCP.attributes.UdpDiscoveryPort=6780
> jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=true
> jcs.auxiliary.LTCP.attributes.Receive=true
> 
> # Disk cache
> jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
> jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
> jcs.auxiliary.DC.attributes.DiskPath=target/test-sandbox/raf
> jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000000
> jcs.auxiliary.DC.attributes.MaxKeySize=1000000
> jcs.auxiliary.DC.attributes.MaxRecycleBinSize=5000
> jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
> jcs.auxiliary.DC.attributes.ShutdownSpoolTimeLimit=60
> 
> 
> 
> 
> -------------------------------
> 
> 
> Aaron
> 
> --- Michael Zurke <mischa@zurke.info> wrote:
> 
> 
>>hi,
>>
>>i am using jcs-1.2-6-5.
>>my cache.ccf looks like:
>>
>># DEFAULT CACHE REGION
>>
>>jcs.default=DC,LTCP
>>jcs.default.cacheattributes=
>>     org.apache.jcs.engine.CompositeCacheAttributes
>>jcs.default.cacheattributes.MaxObjects=1000
>>jcs.default.cacheattributes.MemoryCacheName=
>>     org.apache.jcs.engine.memory.lru.LRUMemoryCache
>>
>>
>>i implemented a first test based on the basic web
>>example descibed in 
>>the user guide and getting the following exception:
>>
>>
>>
>>[06-16 11:19:03]main (CompositeCacheManager.java:89)
>>- Instance is null, 
>>creating with default config
>>[06-16 11:19:03]main
>>(CompositeCacheManager.java:160) - Creating cache 
>>manager from config file: /cache.ccf
>>[06-16 11:19:03]main
>>(CompositeCacheManager.java:172) - File contained 6 
>>properties
>>[06-16 11:19:03]main (ThreadPoolManager.java:306) -
>>Initializing 
>>ThreadPoolManager
>>[06-16 11:19:03]main (ThreadPoolManager.java:451) -
>>thread_pool.default 
>>PoolConfiguration = useBoundary = [true]boundarySize
>>= 
>>[2000]maximumPoolSize = [150]minimumPoolSize =
>>[4]keepAliveTime = 
>>[300000]whenBlockedPolicy = [RUN]startUpSize = [4]
>>[06-16 11:19:03]main
>>(CompositeCacheConfigurator.java:122) - setting 
>>defaults to DC,LTCP
>>[06-16 11:19:03]main (OptionConverter.java:300) -
>>Could not instantiate 
>>class []
>>java.lang.ClassNotFoundException:
>>         at java.lang.Class.forName0(Native Method)
>>         at java.lang.Class.forName(Class.java:164)
>>         at 
>>
> 
> org.apache.jcs.config.OptionConverter.instantiateByClassName(OptionConverter.java:289)
> 
>>         at 
>>
> 
> org.apache.jcs.config.OptionConverter.instantiateByKey(OptionConverter.java:154)
> 
>>         at 
>>
> 
> org.apache.jcs.engine.control.CompositeCacheConfigurator.parseCompositeCacheAttributes(CompositeCacheConfigurator.java:286)
> 
>>         at 
>>
> 
> org.apache.jcs.engine.control.CompositeCacheConfigurator.setDefaultCompositeCacheAttributes(CompositeCacheConfigurator.java:128)
> 
>>         at 
>>
> 
> org.apache.jcs.engine.control.CompositeCacheConfigurator.doConfigure(CompositeCacheConfigurator.java:103)
> 
>>         at 
>>
> 
> org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:209)
> 
>>         at 
>>
> 
> org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:192)
> 
>>         at 
>>
> 
> org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:149)
> 
>>         at 
>>
> 
> org.apache.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCacheManager.java:93)
> 
>>         at
>>org.apache.jcs.JCS.ensureCacheManager(JCS.java:99)
>>         at
>>org.apache.jcs.JCS.getInstance(JCS.java:64)
>>
>>
>>any ideas what's missing?
>>
>>mish
>>
>>
> 
> ---------------------------------------------------------------------
> 
>>To unsubscribe, e-mail:
>>jcs-users-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail:
>>jcs-users-help@jakarta.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Mime
View raw message