JCS looks for the file at the root of the classpath.

If your code compiles to the directory  "classes\com\nektra\
...\MyClass.class", then make sure the file cache.ccf is located right
under "classes\"

If you are creating a JAR file with your classes, include the cache.ccf
in the top directory.


-Jorge

-----Original Message-----
From: Mauro S. Asprea [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2008 2:39 PM
To: jcs-users@jakarta.apache.org
Subject: JCS.setConfigFilename

Hi, I'm having aa issue when trying to set the config.ccf file path.
My code is:

                    JCS.setConfigFilename("cache.ccf");
                    cache = JCS.getInstance("default");

And I'm getting the following exception

    Failed to load properties for name [cache.ccf]
    java.lang.IllegalStateException: Failed to load properties for name
    [cache.ccf]
        at
 
org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeC
acheManager.java:242)
        at org.apache.jcs.JCS.ensureCacheManager(JCS.java:102)
        at org.apache.jcs.JCS.getInstance(JCS.java:64)

I tried setting the JCS.setConfigFilename with a absolute path like 
"c:\mydir\mifile.ccf and the exception keeps throwing.

So I donwloaded the code of JCS and noted that the 
CompositeCacheManager.configure didn't read for my dir path. How can I 
make him to read the file from I want to , or where in my project dirs I

have to put the config file?

I don't how to solve this... any clue?

Thanks!

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

Reply via email to