Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 16328 invoked from network); 17 May 2006 18:01:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 May 2006 18:01:19 -0000 Received: (qmail 96267 invoked by uid 500); 17 May 2006 18:01:15 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 96245 invoked by uid 500); 17 May 2006 18:01:14 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 96234 invoked by uid 99); 17 May 2006 18:01:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2006 11:01:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of stauffer.james@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2006 11:01:13 -0700 Received: by ug-out-1314.google.com with SMTP id m2so271684uge for ; Wed, 17 May 2006 11:00:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZgSpjIe+nI2m9mmNRF7jI3MMX5LLfqlh2Uf+vMtn+qKVRRmiz7XVKY7JEKBOqm3BfxI9VlwkGZJ9PPmGjmjCLfzecjbpfn5w3F68Sp1A5CvzkxX1k5xOwXdbYW87erQnXYRrfLjDNiuveU7a0sZ83EqyDK+2nh8oEkkaAwCG0C0= Received: by 10.78.21.7 with SMTP id 7mr260494huu; Wed, 17 May 2006 11:00:52 -0700 (PDT) Received: by 10.78.33.20 with HTTP; Wed, 17 May 2006 11:00:52 -0700 (PDT) Message-ID: Date: Wed, 17 May 2006 13:00:52 -0500 From: "James Stauffer" To: "Log4J Users List" Subject: Re: Initialize problem on linux machine In-Reply-To: <446B6009.5030908@siteface.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <446B6009.5030908@siteface.de> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Run with -Dlog4j.debug and it should show you how it it trying to configure itself. On 5/17/06, Christian Haase wrote: > Hi all! > > After a frustrating day without success I hope you can help me. > I've trouble running my Java-Apps at Suse Linux. On WinXP all works fine. > > Problem description: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Error: > log4j:WARN No appenders could be found for logger (me.objects.Environment= ). > log4j:WARN Please initialize the log4j system properly. > > > My Java Source (Snippet): > public class XmlSplitter { > private static final org.apache.log4j.Logger logger =3D > org.apache.log4j.Logger.getLogger( XmlSplitter.class.getName() ); > ... > public static void main( String[] args ) throws Exception > { > System.setProperty("log4j.file.name", "XmlSplitter"); > // Only for debugging: > System.getProperties().list(System.out); > .... > > Produces following System.out: > -- listing properties -- > java.runtime.name=3DJava(TM) 2 Runtime Environment, Stand... > sun.boot.library.path=3D/usr/lib/SunJava2-1.4.2/jre/lib/i386 > java.vm.version=3D1.4.2_08-b03 > java.vm.vendor=3DSun Microsystems Inc. > java.vendor.url=3Dhttp://java.sun.com/ > path.separator=3D: > java.vm.name=3DJava HotSpot(TM) Client VM > file.encoding.pkg=3Dsun.io > user.country=3DDE > sun.os.patch.level=3Dunknown > java.vm.specification.name=3DJava Virtual Machine Specification > user.dir=3D/work > java.runtime.version=3D1.4.2_08-b03 > java.awt.graphicsenv=3Dsun.awt.X11GraphicsEnvironment > java.endorsed.dirs=3D/usr/lib/SunJava2-1.4.2/jre/lib/endorsed > os.arch=3Di386 > java.io.tmpdir=3D/tmp > java.vm.specification.vendor=3DSun Microsystems Inc. > os.name=3DLinux > sun.java2d.fontpath=3D > log4j.configuration=3D/work/fop/entwicklung/log4j.properties <--- Looks > right, or not? > java.library.path=3D/usr/lib/SunJava2-1.4.2/jre/lib/i386/... > > > Contents of my log4j.properties: > log4j.rootLogger=3DINFO, FILE, stdout > #### First appender writes to console > log4j.appender.stdout=3Dorg.apache.log4j.ConsoleAppender > log4j.appender.stdout.layout=3Dorg.apache.log4j.PatternLayout > log4j.appender.stdout.layout.ConversionPattern=3D%5p [%t] (%F:%L) - %m%n > # Error-Log in rollierendes ASCII-File, max. 1 MB: > log4j.appender.FILE=3Dorg.apache.log4j.RollingFileAppender > log4j.appender.FILE.File=3D/work/fop/entwicklung/log/${log4j.file.name}.l= og > log4j.appender.FILE.MaxFileSize=3D1000KB > log4j.appender.FILE.MaxBackupIndex=3D3 > log4j.appender.FILE.layout=3Dorg.apache.log4j.PatternLayout > log4j.appender.FILE.layout.ConversionPattern=3D%d %p %l - %m%n > -- > > Any ideas where the problem is? > > Greetings, > Christain > > > ------------------------------------- > Christian Haase, Hans-Mertens-Str. 37 > 30655 Hannover, GERMANY > Tel: +49-511-697916 / +49-178-7772617 > Fax: +49-511-3948280 > ICQ: 307628315 > ------------------------------------- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > --=20 James Stauffer Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org