Corin Moss wrote:
Hiya,
Someone may have gotten to this first - it means that the properties file for the JCS config isn't in your classpath.
I thought I tried that. Must be because I running from within Eclipse.
It does not make much sense to me though. Why first do JCS.setConfigFilename() with the exact path location and then also requiring it to be on the classpath later on?
I see why Carsten changed it to be directly under WEB-INF. When running in developement mode under the eclipse classpath WEB-INF/classes is not in scope for the classloader.
Unico
It's always the little things :)
-----Original Message----- From: Unico Hommes [mailto:[EMAIL PROTECTED]
Sent: Friday, 5 March 2004 2:06 a.m. To: [EMAIL PROTECTED] Subject: Re: [JCS] Test drive
Antonio Gallardo wrote:
Hi:
How to test drive the current JCS store implementation?
Hmm, I can't seem to get past this NPE:
Caused by: java.lang.NullPointerException at java.io.Reader.<init>(Unknown Source) at java.io.InputStreamReader.<init>(Unknown Source) at java.util.Properties.load(Unknown Source) at
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC acheManager.java:203) at org.apache.jcs.JCS.ensureCacheManager(JCS.java:141) at org.apache.jcs.JCS.getInstance(JCS.java:101) at
org.apache.cocoon.components.store.AbstractJCSStore.setup(AbstractJCSSto re.java:118)
I verified that the config file it tries to load from exists.
Suggestions?
Unico
================================================================ CAUTION: This e-mail and any attachment(s) contains information that is intended to be read only by the named recipient(s). It may contain information that is confidential, proprietary or the subject of legal privilege. This information is not to be used by any other person and/or organisation. If you are not the intended recipient, please advise us immediately and delete this e-mail from your system. Do not use any information contained in it.
================================================================ For more information on the Television New Zealand Group, visit us online at http://www.tvnz.co.nz ================================================================
