Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@apache.org Received: (qmail 25909 invoked from network); 8 Aug 2003 15:51:22 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 8 Aug 2003 15:51:22 -0000 Received: (qmail 29638 invoked by uid 97); 8 Aug 2003 15:54:02 -0000 Delivered-To: qmlist-jakarta-archive-log4j-user@nagoya.betaversion.org Received: (qmail 29631 invoked from network); 8 Aug 2003 15:54:02 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 8 Aug 2003 15:54:02 -0000 Received: (qmail 16484 invoked by uid 500); 8 Aug 2003 15:49:27 -0000 Mailing-List: contact log4j-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@jakarta.apache.org Received: (qmail 16410 invoked from network); 8 Aug 2003 15:49:27 -0000 Received: from rwcrmhc12.comcast.net (216.148.227.85) by daedalus.apache.org with SMTP; 8 Aug 2003 15:49:26 -0000 Received: from nicki.visi.com (c-24-118-22-16.mn.client2.attbi.com[24.118.22.16](untrusted sender)) by attbi.com (rwcrmhc12) with SMTP id <2003080815492901400ikbfme>; Fri, 8 Aug 2003 15:49:29 +0000 Message-Id: <5.2.1.1.0.20030808104255.0236c090@shell.visi.com> X-Sender: hoju@shell.visi.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Fri, 08 Aug 2003 10:49:25 -0500 To: "Log4J Users List" From: Jacob Kjome Subject: RE: New issue on Log4J initialization In-Reply-To: <715E193E3C34D411806300508B9B2BDE0200C77A@cwus-bos-pri01.co mpuware.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Yikes. I'd change your classpath to be no more than a single period. Set the classpath as needed in scripts. That way, you won't force libraries that aren't needed or collide with other libraries on every app you run. Just to be clear. Are you running Tomcat or Websphere? I can't tell you what the behavior in Websphere will be. Tomcat should definitely work for logging, though. BTW, what does your app consist of? Does it use Struts or anything else requiring commons-logging? That's the most evil invention to come out of the Apache project. In my experience, it just messes up everything. If this is an issue with commons-logging, you'll have to take it up with them. BTW, I will be leaving for a mini vacation shortly, so someone else is probably going to have to take the reins on this one if you require more help. good luck! Jake At 11:11 AM 8/8/2003 -0400, you wrote: >Actually that is the message I am getting (I just abbreviated it a bit). > >In my application the log4j.jar file does not exist in the common/lib >directory of Tomcat. This file only exists in the web-inf/lib directory of >my application. > >Could this be attributed to my environmental settings: >.;E:\Program Files\IBM\WebSphere MQ\Java\lib\providerutil.jar; >E:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar; >E:\Program Files\IBM\WebSphere MQ\Java\lib\ldap.jar; >E:\Program Files\IBM\WebSphere MQ\Java\lib\jta.jar; >E:\Program Files\IBM\WebSphere MQ\Java\lib\jndi.jar; >E:\Program Files\IBM\WebSphere MQ\Java\lib\jms.jar; >E:\Program Files\IBM\WebSphere MQ\Java\lib\connector.jar; >E:\Program Files\IBM\WebSphere MQ\Java\lib\fscontext.jar; >E:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mq.jar; >E:\jakarta-log4j-1.2.8\dist\lib\log4j-1.2.8;E:\istrobe20jars\dom4j.jar; >E:\Tomcat 4.1\common\lib\servlet.jar; >E:\Tomcat 4.1\bin\bootstrap.jar; >E:\Sandbox\build\classes; >C:\j2sdk1.4.1_01\bin; >E:\Ant1.5.3\apache-ant-1.5.3-1\lib\ant.jar; >E:\Ant1.5.3\apache-ant-1.5.3-1\lib\optional.jar > >Thanks for hanging in there. > >Sincerely, > >Tim > >-----Original Message----- >From: Jacob Kjome [mailto:hoju@visi.com] >Sent: Friday, August 08, 2003 10:57 AM >To: Log4J Users List > > >There doesn't appear to be anything wrong with your log4j.xml (except that >you should use rather than , but that isn't the issue >here). > >Note that the error you've mentioned in previous emails is not an issue >here... > >"Log4j: WARN No appenders could be found for logger >(org.apache.commons.digester.Digester.sax). Please initialize the log4j >system properly." > >I'd bet that goes away if you remove log4j.jar from >CATALINA_HOME/common/lib (please test this out). Having log4j.jar in >WEB-INF/lib of your application provides for a separate logging environment >since it is in a distinct classloader. > >I'm at a loss as to why you are not seeing debug message? You are running >code that does logger.debug(), right? > >Anyone else have a clue what is happening here? > > >Jake > >At 09:49 AM 8/8/2003 -0400, you wrote: > >Can anyone see anything wrong with this log4j.xml file? For some reason I > >cannot get lof4j to initialize and it's driving me crazy. I am sure it is > >something I am doing wrong but I can't seem to locate the problem. > > > >The error message I am getting is: > > > >No appenders could be found for logger. Please initialize the log4j system > >properly . > > > >Here is the log4j file: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >Thank you for your help. > > > > > > > >The contents of this e-mail are intended for the named addressee only. It > >contains information that may be confidential. Unless you are the named > >addressee or an authorized designee, you may not copy or use it, or >disclose > >it to anyone else. If you received it in error please notify us immediately > >and then destroy it. > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org > >For additional commands, e-mail: log4j-user-help@jakarta.apache.org > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: log4j-user-help@jakarta.apache.org > > > >The contents of this e-mail are intended for the named addressee only. It >contains information that may be confidential. Unless you are the named >addressee or an authorized designee, you may not copy or use it, or disclose >it to anyone else. If you received it in error please notify us immediately >and then destroy it. > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: log4j-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-user-help@jakarta.apache.org