Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 87113 invoked from network); 2 Jul 2003 19:30:43 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 2 Jul 2003 19:30:43 -0000 Received: (qmail 7185 invoked by uid 97); 2 Jul 2003 19:33:11 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 7178 invoked from network); 2 Jul 2003 19:33:10 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 2 Jul 2003 19:33:10 -0000 Received: (qmail 85634 invoked by uid 500); 2 Jul 2003 19:30:25 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 85619 invoked from network); 2 Jul 2003 19:30:24 -0000 Received: from ms-smtp-03.nyroc.rr.com (24.92.226.153) by daedalus.apache.org with SMTP; 2 Jul 2003 19:30:24 -0000 Received: from rochester.rr.com (roc-66-67-216-164.rochester.rr.com [66.67.216.164]) by ms-smtp-03.nyroc.rr.com (8.12.5/8.12.2) with ESMTP id h62JURs4025417 for ; Wed, 2 Jul 2003 15:30:27 -0400 (EDT) Message-ID: <3F0332D3.6050004@rochester.rr.com> Date: Wed, 02 Jul 2003 15:30:27 -0400 From: "Dean A. Hoover" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: tomcat and log4j References: <9C5166762F311146951505C6790A9CF8A6E816@US-VS1.corp.mpi.com> In-Reply-To: <9C5166762F311146951505C6790A9CF8A6E816@US-VS1.corp.mpi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Did that, don't see any errors. How exactly does log4j know to configure itself under tomcat, just by dropping the log4j.properties file in the right place??? Shapira, Yoav wrote: >Howdy, >Add -Dlog4j.debug=true to your JAVA_OPTS and check the tomcat logs. If >log4j runs into errors you'll see them there. > >Yoav Shapira >Millennium ChemInformatics > > > > >>-----Original Message----- >>From: Dean A. Hoover [mailto:dhoover@rochester.rr.com] >>Sent: Wednesday, July 02, 2003 2:34 PM >>To: Tomcat Users List >>Subject: Re: tomcat and log4j >> >>OK, so I changed the file to /tmp/xxx.log >>and it still does not show up. Any other >>suggestions? >> >>Dean >> >>Shapira, Yoav wrote: >> >> >> >>>Howdy, >>>You're not going to have file write access to xxx.log from inside a >>> >>> >war. > > >>>Ensure the File parameter for your appender in log4j.properties points >>>to a writeable location. >>> >>>Yoav Shapira >>>Millennium ChemInformatics >>> >>> >>> >>> >>> >>> >>>>-----Original Message----- >>>>From: Dean A. Hoover [mailto:dhoover@rochester.rr.com] >>>>Sent: Monday, June 30, 2003 8:03 PM >>>>To: Tomcat Users List >>>>Subject: Re: tomcat and log4j >>>> >>>>Thanks for responding. I'm just going by what it says in the log4j >>>>manual: >>>> >>>>"The default log4j initialization is particularly useful in >>>> >>>> >web-server > > >>>>environments. Under Tomcat 3.x and 4.x, you should place the >>>>|log4j.properties| under the |WEB-INF/classes| directory of your >>>>web-applications. Log4j will find the properties file and initialize >>>>itself. This is easy to do and it works." >>>> >>>>I am running jakarta-tomcat-4.1.24 on RH 9 using j2sdk1.4.1_02. I >>>> >>>> >just > > >>>>did a jar tvf on my >>>>war file, which shows: >>>> >>>>[dhoover@falcon vendor]$ jar tvf build/vendor.war >>>> 0 Mon Jun 30 03:52:20 EDT 2003 META-INF/ >>>> 110 Mon Jun 30 03:52:20 EDT 2003 META-INF/MANIFEST.MF >>>> 0 Wed May 14 01:06:28 EDT 2003 images/ >>>> 0 Mon Jun 30 01:48:54 EDT 2003 include/ >>>> 0 Mon Jun 30 13:26:16 EDT 2003 css/ >>>>1210 Wed May 14 01:06:28 EDT 2003 login.jsp >>>> 485 Fri Jun 27 15:32:30 EDT 2003 welcome.jsp >>>>3008 Wed May 14 01:06:28 EDT 2003 images/email2.png >>>>15284 Wed May 14 01:06:28 EDT 2003 images/email.jpg >>>>1678 Mon Jun 30 02:16:40 EDT 2003 register2.jsp >>>>6861 Mon Jun 30 01:48:54 EDT 2003 include/contactinfo.jspf >>>>2287 Wed May 14 01:06:28 EDT 2003 contact.html >>>> 435 Fri Jun 27 15:38:58 EDT 2003 index.html >>>> 856 Mon Jun 30 13:25:12 EDT 2003 css/default.css >>>>1729 Mon Jun 30 01:55:04 EDT 2003 register1.jsp >>>>1181 Mon Jun 30 01:54:14 EDT 2003 register3.jsp >>>> 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/ >>>> 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/classes/ >>>>3526 Mon Jun 30 02:58:14 EDT 2003 WEB-INF/classes/Login.class >>>>7268 Mon Jun 30 03:03:26 EDT 2003 WEB-INF/classes/Register.class >>>> 333 Mon Jun 30 03:00:06 EDT 2003 WEB-INF/classes/log4j.properties >>>> 0 Mon Jun 30 03:52:22 EDT 2003 WEB-INF/lib/ >>>>45386 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/activation.jar >>>>305434 Wed May 14 15:43:32 EDT 2003 WEB-INF/lib/mail.jar >>>>352668 Wed Jun 25 14:53:02 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar >>>>97589 Fri May 16 01:45:42 EDT 2003 WEB-INF/lib/universal-common.jar >>>>12844 Fri Jun 27 03:06:54 EDT 2003 WEB-INF/lib/xxx.jar >>>>352668 Mon Jun 30 03:52:06 EDT 2003 WEB-INF/lib/log4j-1.2.8.jar >>>>1800 Wed May 21 09:53:30 EDT 2003 META-INF/context.xml >>>> 496 Wed May 14 02:08:08 EDT 2003 WEB-INF/web.xml >>>> >>>>This is what my log4j.properties file looks like: >>>>log4j.rootLogger=DEBUG, roll >>>> >>>>log4j.appender.roll=org.apache.log4j.RollingFileAppender >>>>log4j.appender.roll.File=xxx.log >>>>log4j.appender.roll.MaxFileSize=100KB >>>>log4j.appender.roll.MaxBackupIndex=1 >>>>log4j.appender.roll.layout=org.apache.log4j.PatternLayout >>>>log4j.appender.roll.layout.ConversionPattern=%d [%t] %-5p %F:%L - >>>> >>>> >%m%n > > >>>>Everything compiles. I've used log4j in non-web apps. I have log >>>> >>>> >>>> >>>> >>>statements >>> >>> >>> >>> >>>>in my servlet, and I cannot find a log file anywhere. What's up with >>>>that??? >>>> >>>>Yoav Shapira wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Howdy, >>>>>It does work if you place logj4.properties in WEB-INF/classes and >>>>> >>>>> >>>>> >>>>> >>>>log4j.jar in >>>> >>>> >>>> >>>> >>>>>WEB-INF/lib. If you could please be a bit more explicity when you >>>>> >>>>> >say > > >>>>> >>>>> >>>>"This >>>> >>>> >>>> >>>> >>>>>does not seem to be working" perhaps I could help more. >>>>> >>>>>Yoav Shapira >>>>> >>>>>--- "Dean A. Hoover" wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>I want to use log4j inside a tomcat application. According >>>>>>to the log4j short manual, all I have to do is drop my >>>>>>log4j.properties file into WEB-INF/classes and then I can >>>>>>just use it. This does not seem to be working. Can someone >>>>>>help? >>>>>> >>>>>>Thanks. >>>>>> >>>>>>Dean Hoover >>>>>> >>>>>> >>>>>>------------------------------------------------------------------- >>>>>> >>>>>> >-- > > >>>>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>>>>>For additional commands, e-mail: >>>>>> >>>>>> >tomcat-user-help@jakarta.apache.org > > >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>===== >>>>>Yoav Shapira >>>>>yoavs@computer.org >>>>> >>>>>__________________________________ >>>>>Do you Yahoo!? >>>>>SBC Yahoo! DSL - Now only $29.95 per month! >>>>>http://sbc.yahoo.com >>>>> >>>>>-------------------------------------------------------------------- >>>>> >>>>> >- > > >>>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>--------------------------------------------------------------------- >>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >>>> >>>> >>>> >>>> >>> >>> >>>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: tomcat-user-unsubscribe@jakarta.apache.org >>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >>> >>> >>> >>> >>> >>> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> >> > > > > >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: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org