Hundreds of LogConfigurationException
Hi all, I am getting a large number of the following exceptions, until the server eventually stops responding. org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:555) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409) at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97) at org.apache.tomcat.util.log.Log.log(Log.java:198) at org.apache.tomcat.util.log.Log.log(Log.java:192) at org.apache.tomcat.util.log.Log.log(Log.java:174) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:420) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:548) ... 8 more Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416) ... 9 more I have log4j in WEB-INF/lib and commons-logging.jar in WEB-INF/lib and also in TOMCAT_HOME/server/lib. I am using tomcat 4.1.18, struts 1.1b3 on Linux 2.4.7 and JDK 1.4.1. -- Ceki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hundreds of LogConfigurationException
Filip, Jim, Yoav thank you! I am using Tomcat 4.1.18 which has commons-logging.jar in server/lib *and* commons-logging-api.jar in common/lib. The jar files commons-logging.jar and commons-logging-api.jar seem to differ only in the absence of log4j support in the latter file. Placing both files as well log4j-1.2.8.jar in common/lib seems to be working as far as logging is concerned. (I also removed commons-logging.jar from my webapps WEB-INF/lib.) Eventually though, my tomcat server still dies a painful death but I can now see the error messages. :-) Why on earth are there two different jar files with almost identical content? At 12:33 19.02.2003 -0500, you wrote: Howdy, Ceki - it's kind of weird to see your name outside the log4j dev list ;) Cool though. Anyways, I think the issue here is with having multiple copies of commons-logging. Tomcat uses commons-logging and allows apps to use it as well by placing it common/lib. However, there's a classloading conflict. Other people have reported this, e.g. http://marc.theaimsgroup.com/?l=tomcat-userm=104305604609583w=2 Perhaps this is worth a shot: move commons-logging jar out of common/lib and into server/lib, so tomcat can still use it internally. Keep a copy of of commons-logging jar (and log4j jar) in your /WEB-INF/lib directory. Does that make the problem go away? Yoav Shapira Millennium ChemInformatics -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 12:26 PM To: [EMAIL PROTECTED] Subject: Hundreds of LogConfigurationException Hi all, I am getting a large number of the following exceptions, until the server eventually stops responding. org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.j ava:555) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.j ava:289) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409) at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97) at org.apache.tomcat.util.log.Log.log(Log.java:198) at org.apache.tomcat.util.log.Log.log(Log.java:192) at org.apache.tomcat.util.log.Log.log(Log.java:174) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja va:533) at java.lang.Thread.run(Thread.java:536) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactory Impl.java:420) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.j ava:548) ... 8 more Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactory Impl.java:416) ... 9 more I have log4j in WEB-INF/lib and commons-logging.jar in WEB-INF/lib and also in TOMCAT_HOME/server/lib. I am using tomcat 4.1.18, struts 1.1b3 on Linux 2.4.7 and JDK 1.4.1. -- Ceki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ceki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j-1.2.5
Lenny, What are the exact problems you are experiencing? What are you doing and what goes wrong? Have you tried putting log4j-X.X.jar under WEB-INF/lib of your webapp? Have you read the section Default Initialization under Tomcat in the log4j manual (http://jakarta.apache.org/log4j/docs/manual.html)? For those interested, I have a long gripe about commons-logging on the log4j-user mailing list: http://marc.theaimsgroup.com/?l=log4j-userm=102640868804904 but that's another story altogether. Let me rephrase my question: After some research through the Jakarta Commons Logging site, I've come to the conclusion that it is going to be very involved to set up Log4j-1.2.5 with Tomcat 4.1.3!!! If someone using Tomcat 4.1.* has already successfully set up and is using any \ versions of Log4j under Tomcat 4.1.* with along Commons Logging jars, would you \ please forward an example of how you set up to me. I've read just about everything I could find regarding log4j and commons logging and I still cannot figure out how to set them up to work together. Any resonse would be greatly appreciated. Please excuse the multiple posts, but I'm am really looking for a solution to this my \ problem. Thanks, Lenny Sorey ** Where exactly should the log4j-1.2.5.jar be located in order to get it to work within Tomcat 4.1.3? I can get log4j to work with log4j.properties while I run it as a separate servlet by starting it from a command line with java after I compile it the servlet alone. I still can't get it to work with Tomcat 4.1.3 My JSP's currently run find and retrieve data. I really need to place some log4j \ statement to debug in some servlets. Any help would certainly be appreciated. Oh Yeah, The folks from the Loggers4J Users group suggested that I asked this group \ for help regarding using log4j with Tomcat. Platform again: Windows 2000 Professional Tomcat 4.1.3 J2SDK 1.4.0 Log4j-1.2.5 Turbine 2.1 velocity-1.2-dev MySQL 4.0.1-alpha-max-nt Thanks, Lenny Sorey -- Ceki -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
log4j in Tomcat 4.x
Hello, I would like to inquire about the status of log4j in Tomcat 4.x, more specifically in Catalina. I had heard through the grapevine that Catalina was going to use log4j internally. Is this correct? Thanks for any info on this matter. Ceki -- Ceki Glc Web: http://qos.ch email: [EMAIL PROTECTED] (preferred) [EMAIL PROTECTED] I hope to see you at my ApacheCon 2001 presentation entitled "Log4j, A Logging Package for Java". See http://ApacheCon.Com/2001/US/ for more details.