jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Bethancourt" <jimbethanco...@gmail.com>
Subject Re: Quick RMI\Remote Auxiliary Cache questions
Date Mon, 15 Jan 2007 23:18:29 GMT
Well,
I tried the suggested remote.cache.ccf file as outlined in the Remote
page and got a different error, but I'm still kind of confused.  Still
not exacty sure what to make of it, but any help would definitely be
appreciated.

Thanks,
Jim

Jan 15, 2007 5:15:09 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 15, 2007 5:15:09 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 828 ms
Jan 15, 2007 5:15:09 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 15, 2007 5:15:09 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Jan 15, 2007 5:15:09 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 15, 2007 5:15:10 PM
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory
startup
INFO: ConfigFileName = [/cache.ccf]
Jan 15, 2007 5:15:10 PM
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory
startup
INFO: Creating server with these attributes
 remoteHost = null
 remotePort = 0
 cacheName = null
 removeUponRemotePut = true
 getOnly = false
 allowClusterGet = true
 localClusterConsistency = true
 getConfigFileName = /cache.ccf
Jan 15, 2007 5:15:10 PM
org.apache.jcs.engine.control.CompositeCacheManager
getUnconfiguredInstance
INFO: Instance is null, creating with provided config
Jan 15, 2007 5:15:10 PM
org.apache.jcs.engine.control.CompositeCacheManager configure
INFO: Creating cache manager from config file: /cache.ccf
Jan 15, 2007 5:15:10 PM
org.apache.jcs.utils.threadpool.ThreadPoolManager loadConfig
INFO: thread_pool.default PoolConfiguration = useBoundary = [true]
boundarySize = [2000] maximumPoolSize = [150] minimumPoolSize = [4]
keepAliveTime = [300000] whenBlockedPolicy = [RUN] startUpSize = [4]
Jan 15, 2007 5:15:10 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator
setDefaultAuxValues
INFO: Setting default auxiliaries to RC
Jan 15, 2007 5:15:10 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator
setDefaultCompositeCacheAttributes
INFO: setting defaultCompositeCacheAttributes to [ useLateral = true,
useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1,
diskUsagePattern = 0 ]
Jan 15, 2007 5:15:10 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator
parseElementAttributes
INFO: No special ElementAttribute class defined for key
[jcs.default.elementattributes], using default class.
Jan 15, 2007 5:15:10 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator
setDefaultElementAttributes
INFO: setting defaultElementAttributes to [ IS_LATERAL = true,
IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL = false, MaxLifeSeconds
= 3600, IdleTime = 1800, CreateTime = 1168902910217, LastAccessTime =
1168902910217, getTimeToLiveSeconds() = 3600, createTime =
1168902910217 ]
Jan 15, 2007 5:15:10 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator
parseElementAttributes
INFO: No special ElementAttribute class defined for key
[jcs.region.intCache.elementattributes], using default class.
Jan 15, 2007 5:15:10 PM
org.apache.jcs.engine.memory.lru.LRUMemoryCache initialize
INFO: initialized LRUMemoryCache for intCache
Jan 15, 2007 5:15:10 PM org.apache.jcs.engine.control.CompositeCache <init>
INFO: Constructed cache with name [intCache] and cache attributes [
useLateral = true, useRemote = true, useDisk = true, maxObjs = 1200,
maxSpoolPerRun = -1, diskUsagePattern = 0 ]
Jan 15, 2007 5:15:10 PM
org.apache.jcs.auxiliary.remote.RemoteCacheManager <init>
SEVERE: Problem finding server at
[//jbethanc-pc:1101/org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService]
java.rmi.NotBoundException:
org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService
	at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)
	at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
	at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
	at sun.rmi.transport.Transport$1.run(Transport.java:153)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
	at java.lang.Thread.run(Thread.java:595)
	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
	at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
	at java.rmi.Naming.lookup(Naming.java:84)
	at org.apache.jcs.auxiliary.remote.RemoteCacheManager.<init>(RemoteCacheManager.java:116)
	at org.apache.jcs.auxiliary.remote.RemoteCacheManager.getInstance(RemoteCacheManager.java:318)
	at org.apache.jcs.auxiliary.remote.RemoteCacheFactory.createCache(RemoteCacheFactory.java:99)
	at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseAuxiliary(CompositeCacheConfigurator.java:551)
	at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:343)
	at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegion(CompositeCacheConfigurator.java:264)
	at org.apache.jcs.engine.control.CompositeCacheConfigurator.parseRegions(CompositeCacheConfigurator.java:241)
	at org.apache.jcs.engine.control.CompositeCacheConfigurator.doConfigure(CompositeCacheConfigurator.java:136)
	at org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:311)
	at org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:255)
	at org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:242)
	at org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.createCacheManager(RemoteCacheServer.java:149)
	at org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.init(RemoteCacheServer.java:120)
	at org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.<init>(RemoteCacheServer.java:110)
	at org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.startup(RemoteCacheServerFactory.java:162)
	at org.apache.jcs.auxiliary.remote.server.RemoteCacheStartupServlet.init(RemoteCacheStartupServlet.java:130)
	at javax.servlet.GenericServlet.init(GenericServlet.java:211)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Jan 15, 2007 5:15:10 PM
org.apache.jcs.auxiliary.remote.RemoteCacheManager
addRemoteCacheListener
INFO: The remote cache is configured to receive events from the remote
server.  We will register a listener.
Jan 15, 2007 5:15:10 PM org.apache.jcs.auxiliary.remote.RemoteCache <init>
INFO: factory already defined
Jan 15, 2007 5:15:10 PM org.apache.jcs.engine.CacheEventQueue destroy
INFO: Destroy was called after queue was destroyed.  Doing nothing.
Stats =  Cache Event Queue
Working = true
Alive = false
Empty = true
Size = 0
Jan 15, 2007 5:15:10 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator parseRegions
INFO: Parsed regions [intCache]
Jan 15, 2007 5:15:10 PM
org.apache.jcs.engine.control.CompositeCacheConfigurator doConfigure
INFO: Finished configuration in 250 ms.
Jan 15, 2007 5:15:10 PM
org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory
startup
INFO: Binding server to 172.16.64.162:1101 with the name
org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService
Jan 15, 2007 5:15:10 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 15, 2007 5:15:10 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jan 15, 2007 5:15:10 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
Jan 15, 2007 5:15:10 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jan 15, 2007 5:15:10 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1391 ms
Jan 15, 2007 5:15:40 PM
org.apache.jcs.auxiliary.remote.RemoteCacheRestore canFix
INFO: looking up server
//jbethanc-pc:1101/org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService
Jan 15, 2007 5:15:40 PM
org.apache.jcs.auxiliary.remote.RemoteCacheRestore canFix
INFO: looking up server
//jbethanc-pc:1101/org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService
Jan 15, 2007 5:15:40 PM
org.apache.jcs.auxiliary.remote.server.RemoteCacheServer
addCacheListener
INFO: adding vm listener under new id = [1], listenerAddress [172.16.64.162]
Jan 15, 2007 5:15:40 PM
org.apache.jcs.auxiliary.remote.server.RemoteCacheServer
addCacheListener
INFO: Region intCache's listener size = 1
Jan 15, 2007 5:15:40 PM
org.apache.jcs.auxiliary.remote.ZombieRemoteCacheService
propagateEvents
INFO: Propagating events to the new RemoteService.
Jan 15, 2007 5:15:40 PM
org.apache.jcs.auxiliary.remote.ZombieRemoteCacheService
propagateEvents
INFO: Propagated 0 events to the new RemoteService in 0ms.
Jan 15, 2007 5:15:40 PM
org.apache.jcs.auxiliary.remote.RemoteCacheNoWait resetEventQ
INFO: resetEventQ, previous queue has [0] items queued up.
Jan 15, 2007 5:15:40 PM org.apache.jcs.engine.CacheEventQueue destroy
INFO: Destroy was called after queue was destroyed.  Doing nothing.
Stats =  Cache Event Queue
Working = true
Alive = false
Empty = true
Size = 0
Jan 15, 2007 5:15:40 PM org.apache.jcs.auxiliary.remote.RemoteCacheRestore fix
INFO: Remote connection to
//jbethanc-pc:1101/org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService
resumed.

On 1/15/07, Jim Bethancourt <jimbethancourt@gmail.com> wrote:
> Hi all,
> I've been able to successfully get the admin.jsp deployed for the
> Remote Auxiliary Cache Server, but I'm getting the following error
> messages (below) when I do start it up.  Any suggestions?  I've got
> the JCS, concurrency, and commons-logging jars in the WEB-INF\lib
> directory and I've tried the remote.cache.ccf in the WEB-INF\classes
> directory and I've added the cache.ccf file to the directory as well
> since it complained about that (but with no luck), but I can't think
> of anything else.
>
>
> Thanks,
> Jim
>
>
> Jan 15, 2007 2:33:17 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Jan 15, 2007 2:33:17 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 829 ms
> Jan 15, 2007 2:33:17 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Jan 15, 2007 2:33:17 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
> Jan 15, 2007 2:33:17 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Jan 15, 2007 2:33:17 PM
> org.apache.jcs.auxiliary.remote.server.RemoteCacheStartupServlet init
> SEVERE: Problem loading props.
> java.lang.IllegalArgumentException: could not load [cache.ccf] as a
> classloader resource
>         at org.apache.jcs.utils.props.PropertyLoader.loadProperties(PropertyLoader.java:141)
>         at org.apache.jcs.utils.props.PropertyLoader.loadProperties(PropertyLoader.java:158)
>         at org.apache.jcs.auxiliary.remote.server.RemoteCacheStartupServlet.init(RemoteCacheStartupServlet.java:74)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
>         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> Jan 15, 2007 2:33:17 PM
> org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory
> startup
> INFO: ConfigFileName = [/cache.ccf]
> Jan 15, 2007 2:33:17 PM org.apache.jcs.auxiliary.remote.RemoteUtils loadProps
> SEVERE: Error loading remote properties, for file name [/cache.ccf]
> java.lang.NullPointerException
>         at java.util.Properties$LineReader.readLine(Properties.java:365)
>         at java.util.Properties.load(Properties.java:293)
>         at org.apache.jcs.auxiliary.remote.RemoteUtils.loadProps(RemoteUtils.java:92)
>         at org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.startup(RemoteCacheServerFactory.java:122)
>         at org.apache.jcs.auxiliary.remote.server.RemoteCacheStartupServlet.init(RemoteCacheStartupServlet.java:130)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
>         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> Jan 15, 2007 2:33:17 PM
> org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory
> startup
> INFO: Creating server with these attributes
>  remoteHost = null
>  remotePort = 0
>  cacheName = null
>  removeUponRemotePut = true
>  getOnly = false
>  allowClusterGet = true
>  localClusterConsistency = true
>  getConfigFileName = /cache.ccf
> Jan 15, 2007 2:33:17 PM
> org.apache.jcs.engine.control.CompositeCacheManager
> getUnconfiguredInstance
> INFO: Instance is null, creating with provided config
> Jan 15, 2007 2:33:17 PM
> org.apache.jcs.engine.control.CompositeCacheManager configure
> INFO: Creating cache manager from config file: /cache.ccf
> Jan 15, 2007 2:33:17 PM
> org.apache.jcs.engine.control.CompositeCacheManager configure
> SEVERE: Failed to load properties for name [/cache.ccf]
> Jan 15, 2007 2:33:17 PM
> org.apache.jcs.auxiliary.remote.server.RemoteCacheStartupServlet init
> SEVERE: Problem starting remote cache server.
> java.lang.IllegalStateException: Failed to load properties for name [/cache.ccf]
>         at org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:239)
>         at org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.createCacheManager(RemoteCacheServer.java:149)
>         at org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.init(RemoteCacheServer.java:120)
>         at org.apache.jcs.auxiliary.remote.server.RemoteCacheServer.<init>(RemoteCacheServer.java:110)
>         at org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory.startup(RemoteCacheServerFactory.java:162)
>         at org.apache.jcs.auxiliary.remote.server.RemoteCacheStartupServlet.init(RemoteCacheStartupServlet.java:130)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
>         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> Jan 15, 2007 2:33:18 PM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Jan 15, 2007 2:33:18 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Jan 15, 2007 2:33:18 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/94  config=null
> Jan 15, 2007 2:33:18 PM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Jan 15, 2007 2:33:18 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1015 ms
>

---------------------------------------------------------------------
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