Did your tomcat shutdown?

If so, are you trying to run 2 laterals on the same
box, both binding tot he same port?

Aaron


--- vonrosen2000 <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm using jcs-1.2.5-dev.jar, I updated my cache.ccf
> as suggested.
> However after I start/stop tomcat once, every
> further attempt to start
> gives:
> 
> 2005-03-11 23:07:05,968 ERROR
>
[org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPListener]
> -
> <Exception caught in TCP listener>
> java.net.BindException: Address already in use:
> JVM_Bind
>       at java.net.PlainSocketImpl.socketBind(Native
> Method)
>       at
>
java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
>       at
> java.net.ServerSocket.bind(ServerSocket.java:318)
>       at
> java.net.ServerSocket.<init>(ServerSocket.java:185)
>       at
> java.net.ServerSocket.<init>(ServerSocket.java:97)
>       at
>
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPListener$ListenerT
> hread.run(LateralTCPListener.java:291)
> 
> 
> Do I need to explicitly do some sort of cleanup on
> the cache so it
> doesn't hold onto the socket?
> 
> -----Original Message-----
> From: Smuts, Aaron [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 09, 2005 9:42 AM
> To: Turbine JCS Users List
> Subject: RE: jcs lateral tcp cache config
> 
> 
> 
> I'm not sure what version you are using.  You should
> set the default
> element attributes to allow items to go laterally if
> a lateral is
> available.  
> 
> You had "ProductCache.cacheattributes.IsLateral"  it
> should have been
> "ProductCache.elementattributes.IsLateral".
> 
> You should have seen a message in the logs.
> 
> Try this for your cache.ccf:
> 
> 
> # DEFAULT CACHE REGION 
> 
> jcs.default=
>
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribut
> es
> jcs.default.cacheattributes.MaxObjects=1000
>
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
> .lru.LRUMemoryCache
>
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
> jcs.default.elementattributes.IsEternal=true
> #jcs.default.elementattributes.MaxLifeSeconds=3600
> #jcs.default.elementattributes.IdleTime=1800
> jcs.default.elementattributes.IsSpool=true
> jcs.default.elementattributes.IsRemote=true
> jcs.default.elementattributes.IsLateral=true
> 
>
########################################################################
> #####
> # CACHE REGIONS AVAILABLE
> # Regions preconfigured for caching
> 
> #PRODUCTCACHE
> jcs.region.ProductCache=LTCP
>
jcs.region.ProductCache.cacheattributes=org.apache.jcs.engine.CompositeC
> acheAttributes
>
jcs.region.ProductCache.cacheattributes.MaxObjects=4000
>
jcs.region.ProductCache.cacheattributes.MemoryCacheName=org.apache.jcs.e
> ngine.memory.lru.LRUMemoryCache
>
jcs.region.ProductCache.cacheattributes.UseMemoryShrinker=false
>
jcs.region.ProductCache.cacheattributes.MaxMemoryIdleTimeSeconds=3600
>
jcs.region.ProductCache.cacheattributes.ShrinkerIntervalSeconds=60
>
jcs.region.ProductCache.elementattributes.IsSpool=true
>
jcs.region.ProductCache.elementattributes.IsRemote=true
>
jcs.region.ProductCache.elementattributes.IsLateral=true
> 
>
########################################################################
> #####
> #AUX CACHES
> 
> #LATERAL
>
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
>
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCa
> cheAttributes
>
jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
>
jcs.auxiliary.LTCP.attributes.TcpServers=192.168.0.3:1110
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
> jcs.auxiliary.LTCP.attributes.PutOnlyMode=false
>
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheF
> actory
> 
> #DISK
>
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.Indexe
> dDiskCacheAttributes
> jcs.auxiliary.DC.attributes.DiskPath=c:/
> jcs.auxiliary.DC.attributes.maxKeySize=100000
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to