Thanks, Vincent, for your help. I should have mentioned in my last e-mail that I've already read through the howto_config document several times. There must be a link that I am, unfortunately, missing. I've reviewed your responses along with the howto_config document again and, while I'm no longer getting the ChainedRuntimeException error (since I have the cactus.properties file in the classpath), I'm no longer seeing the cactus client log file getting created. I have a few more directed questions that hopefully will help me figure out what I'm not understanding with the setup. If there is documentation other than the howto_config that I should also be checking out in order to get this configured correctly with log4j, please let me know. (FYI, my log4j has been and continues to be working as expected, so I don't believe it to be a setup issue with the log4j configuration.)
(1) At what point should I expect to see the cactus client log file get created? I'm thinking I should see an (empty) log file at the time the local test server in WSAD is started. Or should I not be seeing this file until the first time I run a JUnit test case? In either case, I'm not seeing the log -- I've checked both before and after running a JUnit test and am not seeing the log file. (2) I'm expecting to see a cactus client log file separate from the log file that gets created by my log4j settings -- is this correct? (3) Once I get a log file created, I think I should be seeing a log entry every time I run a test case, is this correct? (4) My cactus.properties file (for the client side configuration) now looks like the following. (Note: I've left in the servletRedirectorName since the default according to the documentation is ServletRedirector, not ServletTestRedirector.) cactus.contextURL = http://localhost:9080/fedmailUnitTest cactus.servletRedirectorName=ServletTestRedirector cactus.logging.config = c:/tmp/dev/fedmailUnitTest/cactus-logging-client.properties cactus.enableLogging = true (5) My cactus-logging-client.properties file contains the client side logging configuration information as shown below. My questions here are (a) the log4j.configuration property should point to the location of the log4j properties file, correct? and (b) Setting up the cactus.properties file to point to this configuration file and having this configuration file available should be all I need to do to see the cactus client log file being generated, correct? (If so, then I really don't understand why my cactus client log file is not being generated.) # Disable logging #org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog # Force to use Log4J logging org.apache.commons.logging.Log = org.apache.commons.logging.impl.Log4JLogger # ---- Log4J logging properties # Following properties are useful if you're using the Log4J logging subsystem # and wish to output logs to a file. Make sure to comment out the NoOpLog line # above. log4j.configuration = file:/c:/tmp/dev/fedmailWeb/WebContent/WEB-INF/log4j.properties log4j.appender.cactus = org.apache.log4j.FileAppender log4j.appender.cactus.File = c:/tmp/cactus_client.log log4j.appender.cactus.Append = false log4j.appender.cactus.layout = org.apache.log4j.PatternLayout log4j.appender.cactus.layout.ConversionPattern = %d{ABSOLUTE} [%t] %-5p %-30.30c{2} %x - %m %n # Any application log which uses Log4J will be logged to the Cactus log file log4j.rootCategory=DEBUG, cactus # Debug logs for Cactus log4j.category.org.apache.cactus = DEBUG, cactus log4j.additivity.org.apache.cactus = false # Debug logs for HttpClient log4j.category.org.apache.commons.httpclient = DEBUG, cactus log4j.additivity.org.apache.commons.httpclient = false log4j.category.httpclient = WARN, cactus log4j.additivity.httpclient = false (6) My understanding from the documentation is that the cactus.properties file is only needed for the client side configuration. At what time does the logging-server.properties file get accessed and the cactus-server.log file get created? I don't seem to be getting the cactus server log file created even though I have the logging-server.properties file located in the WEB-INF directory, which you indicated is the correct spot for this file. I also have the web.xml file defined with the cactus redirectors. My apologies if these are simple questions, but I'm just not getting the exact configuration setup that is apparently needed. Thanks for any help you can provide. It is appreciated! ================================ Diana M. Fasching Sr. Systems Analyst Federal Reserve Bank of Minneapolis 90 Hennepin Avenue Minneapolis, MN 55401-1804 612.204.6280 mailto:[EMAIL PROTECTED] ================================
