[Opensymphony-oscache] Easy Config question--Please Help!!!!
Russ Ray <[email protected]> Fri, 03 Jun 2005 11:18:24 CDT
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <15362728.1117815730219.JavaMail.os-j2ee@opensymphony01.contegix.com> |
I know this is a very easy question, so please excuse me for even asking it. I am modifying the properties file to use some file caching capability. When I come to the login servlet, I get a null point exception when OSCache is trying to load the properties file. Here the things I changed from the default: cache.persistence.class=com.opensymphony.oscache.plugins.diskpersistence.DiskPersistenceListener cache.path=c:\\app\\cache cache.algorithm=com.opensymphony.oscache.base.algorithm.UnlimitedCache cache.blocking=false This is my error: [6/3/05 11:01:55:984 CDT] 49927ac1 Config E com.opensymphony.oscache.base.Config Error reading /oscache.properties in CacheAdministrator.loadProps() java.lang.NullPointerException [6/3/05 11:01:55:984 CDT] 49927ac1 Config E com.opensymphony.oscache.base.Config Ensure the /oscache.properties file is readable and in your classpath. Then I see this and I get confused: [6/3/05 11:01:56:000 CDT] 49927ac1 ServletCacheA I com.opensymphony.oscache.web.ServletCacheAdministrator Created new instance of ServletCacheAdministrator [6/3/05 11:01:56:000 CDT] 49927ac1 ServletCacheA I com.opensymphony.oscache.web.ServletCacheAdministrator Created new application-scoped cache at key: __oscache_cache [6/3/05 11:01:56:000 CDT] 49927ac1 CacheFilter I com.opensymphony.oscache.web.filter.CacheFilter <cache>: filter in scope 4 [6/3/05 11:01:56:031 CDT] 49927ac1 CacheFilter I com.opensymphony.oscache.web.filter.CacheFilter <cache>: New cache entry, cache stale or cache scope flushed for /PowerImageWeb/login.do_GET_ What I have done is set up the tool to cache the login screen using the web deployment descriptor. I think this is working correctly. I have place the properties file in the correct location per the install instructions. Can anyone explain this to me? Thank you for taking the time to read my post and again I apologize for the lackluster post. Russ --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=2923&messageID=7905#7905