You can ignore the JCS warnings, they do not affect normal behavior.
Latest JCS
The latest JCS uses commons logging, so you can add the following to web.xml so that JCS logs go through Cocoon's logkit:
<init-param> <param-name>force-property</param-name> <param-value> org.apache.commons.logging.Log=org.apache.commons.logging.impl.LogKitLogger </param-value> </init-param>
This may affect the logging of other classes running in the JVM since it sets a System property.
If you execute cocoon from the commandline, add -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.LogKitLogger
to the command line.
Email discussion.
Older JCS
If you want to get rid the logs from the console, then you need to configure log4j, ie: in WEB-INF/classes create a file called log4j.properties and place this inside the file (replacing each YOUR-*-FILENAME with a real path and filename):
#********************************************************************** # Root log4j appender log4j.rootCategory = INFO, root log4j.appender.root = org.apache.log4j.FileAppender log4j.appender.root.File = <YOUR-DEFAULT-LOGGING-FILENAME> log4j.appender.root.layout = org.apache.log4j.PatternLayout log4j.appender.root.layout.ConversionPattern = %-5r %-5p [%t] %c{2} - %m%n log4j.appender.root.Append = false # Apache JCS cache log4j.category.org.apache.jcs = INFO, jcs log4j.appender.jcs = org.apache.log4j.FileAppender log4j.appender.jcs.File = <YOUR-JCS-LOGGING-FILENAME> log4j.appender.jcs.layout = org.apache.log4j.PatternLayout log4j.appender.jcs.layout.ConversionPattern = %-5r %-5p [%t] %c{2} - %m%n log4j.appender.jcs.Append = false #**********************************************************************
Email discussion.