Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@www.apache.org Received: (qmail 2047 invoked from network); 27 Nov 2003 16:30:22 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Nov 2003 16:30:22 -0000 Received: (qmail 64230 invoked by uid 500); 27 Nov 2003 16:30:11 -0000 Delivered-To: apmail-jakarta-log4j-user-archive@jakarta.apache.org Received: (qmail 64000 invoked by uid 500); 27 Nov 2003 16:30:09 -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 63986 invoked from network); 27 Nov 2003 16:30:09 -0000 Received: from unknown (HELO smtp21.singnet.com.sg) (165.21.101.201) by daedalus.apache.org with SMTP; 27 Nov 2003 16:30:09 -0000 Received: from HP29375324311 (tns02713.singnet.com.sg [165.21.190.143]) by smtp21.singnet.com.sg (8.12.10/8.12.10) with ESMTP id hARGU4Gf025633 for ; Fri, 28 Nov 2003 00:30:09 +0800 Message-Id: <200311271630.hARGU4Gf025633@smtp21.singnet.com.sg> Reply-To: From: "Tun Lin" To: "'Log4J Users List'" Subject: RE: Newbie setup on Orion Date: Fri, 28 Nov 2003 00:29:57 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcO01WHlNks/FLQJRGy2txBDTvUMewALaqPg In-Reply-To: <001b01c3b4d5$28934640$4200a8c0@smaug> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Is the latest jar file 345KB? However, I still have log4j:WARN No appenders could be found for logger(org.pdfbox.pdfparser.PDFParser). log4j:WARN Please initialize the log4j system properly. What is wrong? Can anyone help? -----Original Message----- From: Brian McSweeney [mailto:brian.mcsweeney@aurium.net] Sent: Thursday, November 27, 2003 6:57 PM To: 'Log4J Users List' Subject: RE: Newbie setup on Orion Hi Thomas, Thanks for the reply. I finally got it working today. It was a log4j version issue I think. Using the latest jar fixed the problem. Thanks for your help! Brian -----Original Message----- From: Thomas Svensen [mailto:tsv@cellus.no] Sent: 27 November 2003 09:06 To: Log4J Users List Subject: RE: Newbie setup on Orion Sorry, I have been a little busy. Have you got any further on this? I am 100% sure that we don't do any log4j configuration in the code! Have you tested the log4j configuration outside Orion? Have you tried starting Orion with -Dlog4j.debug=true? - Thomas > -----Original Message----- > From: Brian McSweeney [mailto:brian.mcsweeney@aurium.net] > Sent: 25. november 2003 13:35 > To: 'Log4J Users List' > Subject: RE: Newbie setup on Orion > > > Thanks a Million Thomas! > > Really appreciate it. Guess what, only problem - didn't get it to work > :-) > Just to make sure again. I put the log4j.jar in orion/lib and the > log4j.xml in my WEB-INF/classes of the war. The war is inside an ear. > > I can see the log4j.xml in the war when orion explodes it out in the > applications directory but I'm still getting the following error in > orion: > > > log4j:WARN No appenders could be found for logger > (com.myapp.web.onload.Init). > log4j:WARN Please initialize the log4j system properly. > java.lang.NullPointerException > at com.myapp.web.onload.Init.setTimeZoneAndLocale(Unknown > Source) > at com.myapp.web.onload.Init.contextInitialized(Unknown Source) > at com.evermind._ay._lee(.:552) > at com.evermind._ay.(.:317) > at com.evermind._am._rtb(.:607) > at com.evermind._ex._rtb(.:581) > at com.evermind._eu._kae(.:482) > at com.evermind._eu._bi(.:226) > at com.evermind._ex._bn(.:240) > at com.evermind._ex._bi(.:146) > at com.evermind.server.ApplicationServer._gke(.:1730) > at com.evermind.server.ApplicationServer._bi(.:1068) > at com.evermind._ctb.run(.:89) > at java.lang.Thread.run(Thread.java:536) > at com.evermind._bf.run(.:47) > > Any ideas? Are you sure that you don't initialize log4j in code > anywhere? I'm running orion version 2.0.2 Thanks for the help! > Brian > > > -----Original Message----- > From: Thomas Svensen [mailto:tsv@cellus.no] > Sent: 25 November 2003 12:05 > To: Log4J Users List > Subject: RE: Newbie setup on Orion > > Here is an extract of our log4j.xml file. Socket appender is nice, e.g. > lets > you have the server send logs to a local Chainsaw running on your own > computer :-) > > Regarding file path, it is relative from the orion base directory. So > the setup below logs to .../orion/log/content.log > > Happy logging! :-) > > - Thomas S. > > > debug="false" > xmlns:log4j="http://jakarta.apache.org/log4j/"> > class="org.apache.log4j.DailyRollingFileAppender"> > > > > value="%d{HH:mm:ss,SSS} [%-5.5p] > %-20c{1}: %m %x\n"/> > > > class="org.apache.log4j.net.SocketAppender"> > > > > > > > > > > > > > --------------------------------------------------------------------- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-user-help@jakarta.apache.org