So, my setup is correct? > -----Original Message----- > From: Nentwig, Timo [mailto:[EMAIL PROTECTED] > Sent: Monday, September 26, 2005 6:00 PM > To: JCS Users List > Subject: RE: remote cache: connection to 127.0.0.1 refused (?) > > Hi! > > Thanks for you reply. > > > -----Original Message----- > > From: Smuts, Aaron [mailto:[EMAIL PROTECTED] > > Sent: Monday, September 26, 2005 5:22 PM > > To: JCS Users List > > Subject: RE: remote cache: connection to 127.0.0.1 refused (?) > > > > In the remote.cache.ccf file you need to specify the address of the > > remote object that you will add to the registry. > > > > Replace "localhost" with the machine name or ip. > > > > registry.host=localhost > > registry.port=1102 > > In the remote server's config? Well, okay, I replaced > localhost with the IP (10.10.10.3). Now the server isn't even > starting anymore: > > [java] 266 [main] INFO > org.apache.jcs.engine.control.CompositeCacheConfigurator - > setting defaultElementAttributes to [ IS_LATERAL = true, > IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL = true, > MaxLifeSeconds = -1, IdleTime = -1, CreateTime = > 1127749096178, LastAccessTime = 1127749096178, > getTimeToLiveSeconds() = -1, createTime = 1127749096178 ] > [java] 267 [main] DEBUG > org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactor > y - main> binding server to 10.10.10.3:1102 with the name > org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService > [java] 274 [main] FATAL StartRemoteCacheServer - An > exception raised. Won't startup remote cache! > [java] java.rmi.ConnectException: Connection refused to host: > 10.10.10.3; nested exception is: > [java] java.net.ConnectException: Connection refused > [java] at > sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567) > [java] at > sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185) > [java] at > sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) > [java] at > sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313) > [java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown > Source) > [java] at java.rmi.Naming.rebind(Naming.java:160) > [java] at > org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactor > y.startup( > RemoteCacheServerFactory.java:126) > [java] at > org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactor > y.main(Rem > oteCacheServerFactory.java:287) > [java] at > StartRemoteCacheServer.main(StartRemoteCacheServer.java:44) > [java] Caused by: java.net.ConnectException: Connection refused > [java] at > java.net.PlainSocketImpl.socketConnect(Native Method) > [java] at > java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) > [java] at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) > [java] at > java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) > [java] at java.net.Socket.connect(Socket.java:452) > [java] at java.net.Socket.connect(Socket.java:402) > [java] at java.net.Socket.<init>(Socket.java:309) > [java] at java.net.Socket.<init>(Socket.java:124) > [java] at > sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RM > IDirectSoc > ketFactory.java:22) > [java] at > sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RM > IMasterSoc > ketFactory.java:128) > [java] at > sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562) > [java] ... 8 more > > > I've had a shot at setting registry.host=10.10.10.3 in the > client's config but without success. So, here are my complete > configurations: > > > remote server (remote.cache.ccf): > -------------------------------- > > registry.host=10.10.10.3 > registry.port=1102 > # call back port to local caches. > #remote.cache.service.port=1102 > # cluster setting > #remote.cluster.LocalClusterConsistency=true > > jcs.default=DC > jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCac > heAttribut > es > jcs.default.cacheattributes.MaxObjects=50 > jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.eng > ine.memory > .lru.LRUMemoryCache > > jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.Indexed > DiskCacheF > actory > jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.inde > xed.Indexe > dDiskCacheAttributes > jcs.auxiliary.DC.attributes.DiskPath=/tmp/jcs/ > > > client (local.cache.ccf): > ------------------------ > > #registry.host=10.10.10.3 > #registry.port=1102 > > #jcs.default=DC > jcs.default=remote > #jcs.default=DC,remote > jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCac > heAttribut > es > jcs.default.cacheattributes.MaxObjects=1000 > jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.eng > ine.memory > .lru.LRUMemoryCache > jcs.auxiliary.DC=de.jamba.commons.cache.jcs.auxiliary.disk.per > sistent.Pe > rsistentDiskCacheFactory > jcs.auxiliary.DC.attributes=de.jamba.commons.cache.jcs.auxilia > ry.disk.pe > rsistent.PersistentDiskCacheAttributes > jcs.auxiliary.DC.attributes.DiskPath=/tmp/jcs/ > > jcs.auxiliary.remote=org.apache.jcs.auxiliary.remote.RemoteCac > heFactory > jcs.auxiliary.remote.attributes=org.apache.jcs.auxiliary.remot > e.RemoteCa > cheAttributes > jcs.auxiliary.remote.attributes.FailoverServers=10.10.10.3:1102 > #jcs.auxiliary.RC.attributes.RemoveUponRemotePut=true > jcs.auxiliary.remote.attributes.GetOnly=false > > --------------------------------------------------------------------- > 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]