logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Kjome" <h...@visi.com>
Subject Re: NOOB needs Help with accessing log4j.properties. Already tried -Dlog4j.configuration=./log4j.properties and modifying the classpath
Date Thu, 09 Oct 2008 19:31:50 GMT
Is the directory that contains log4j.properties on the classpath? 

Jake


On Thu, 9 Oct 2008 09:44:48 -0700 (PDT)
  Someone <thisisafakeemailaddr@yahoo.com> wrote:
> If anyone can shed some light on the issue...
> 
> log4j.properties is not in my jar, but I should still be able to access 
>it...
> 
> The Error Message:
> log4j:WARN No appenders could be found for logger 
>(mil.dcgs.cih.jms.correlation.MessengerMain).
> log4j:WARN Please initialize the log4j system properly.
> 
> The System Properties Array:
> System Properties:
> ----------------------------------------------------------------------
> java.vm.vendor.url.bug=http://support.bea.com
> java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
> sun.boot.library.path=C:\Program Files\Java\jrockit-R27.1.0-jre1.5.0_08\bin
> java.vm.version=R27.1.0-109-73164-1.5.0_08-20061129-1428-windows-ia32
> java.vm.vendor=BEA Systems, Inc.
> java.vendor.url=http://www.bea.com/
> path.separator=;
> java.vm.name=BEA JRockit(R)
> file.encoding.pkg=sun.io
> java.vm.vendor.url=http://www.bea.com/
> user.country=US
> sun.os.patch.level=Service Pack 2
> java.vm.specification.name=Java Virtual Machine Specification
> user.dir=C:\CORREL~1\CORREL~1\dist
> java.runtime.version=1.5.0_08-b03
> java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
> java.endorsed.dirs=C:\Program 
>Files\Java\jrockit-R27.1.0-jre1.5.0_08\lib\endorse
> d
> os.arch=x86
> java.io.tmpdir=C:\DOCUME~1\HORNIJ~1.DCG\LOCALS~1\Temp\
> line.separator=
> 
> java.vm.specification.vendor=Sun Microsystems Inc.
> user.variant=
> os.name=Windows XP
> log4j.configuration=./log4j.properties
> sun.jnu.encoding=Cp1252
> java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:\WINDOWS;%path%;C:
> \WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
>Files\Microsoft
> SQL Server\80\Tools\BINN;C:\Program Files\Microsoft SQL 
>Server\90\DTS\Binn\;C:\
> bsh32;C:\progra~1\mi53b4~1;c:\sun\appserver\bin;%path%;C:\WINDOWS\system32;C:\WI
> NDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL 
>Server\80\Tools\BI
> NN;C:\Program Files\Microsoft SQL 
>Server\90\DTS\Binn\;C:\bsh32;C:\progra~1\mi53b
> 4~1;c:\sun\appserver\bin;"c:\documents and settings\owner\Deskto
> p\7-ZipPortable\App\7-Zip"
> java.specification.name=Java Platform API Specification
> java.class.version=49.0
> sun.management.compiler=BEA JRockit(R) Optimizing Compiler
> os.version=5.1
> user.home=C:\Documents and Settings\owner
> user.timezone=
> java.awt.printerjob=sun.awt.windows.WPrinterJob
> file.encoding=Cp1252
> java.specification.version=1.5
> java.class.path=testapp.jar
> user.name=owner
> java.vm.specification.version=1.0
> java.home=C:\Program Files\Java\jrockit-R27.1.0-jre1.5.0_08
> sun.arch.data.model=32
> user.language=en
> java.specification.vendor=Sun Microsystems Inc.
> awt.toolkit=sun.awt.windows.WToolkit
> java.vm.info=compiled mode
> java.version=1.5.0_08
> java.ext.dirs=C:\Program Files\Java\jrockit-R27.1.0-jre1.5.0_08\lib\ext
> sun.boot.class.path=C:\Program 
>Files\Java\jrockit-R27.1.0-jre1.5.0_08\bin\jrocki
> t\jrockit1.5.0.jar;C:\Program 
>Files\Java\jrockit-R27.1.0-jre1.5.0_08\bin\jrockit
> \managementapi.jar;C:\Program 
>Files\Java\jrockit-R27.1.0-jre1.5.0_08\bin\jrockit
> \jmxmapi.jar;C:\Program 
>Files\Java\jrockit-R27.1.0-jre1.5.0_08\bin\jrockit\rmp.j
> ar;C:\Program Files\Java\jrockit-R27.1.0-jre1.5.0_08\lib\rt.jar;C:\Program 
>Files
> \Java\jrockit-R27.1.0-jre1.5.0_08\lib\i18n.jar;C:\Program 
>Files\Java\jrockit-R27
> .1.0-jre1.5.0_08\lib\sunrsasign.jar;C:\Program 
>Files\Java\jrockit-R27.1.0-jre1.5
> .0_08\lib\jsse.jar;C:\Program 
>Files\Java\jrockit-R27.1.0-jre1.5.0_08\lib\jce.jar
> ;C:\Program 
>Files\Java\jrockit-R27.1.0-jre1.5.0_08\lib\charsets.jar;C:\Program F
> iles\Java\jrockit-R27.1.0-jre1.5.0_08\classes
> java.vendor=BEA Systems, Inc.
> file.separator=\
> java.vendor.url.bug=http://support.bea.com
> sun.io.unicode.encoding=UnicodeLittle
> sun.cpu.endian=little
> sun.desktop=windows
> sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 
>i86
> 
> I'm willing to entertain the possibility that it may be my log4j.properties 
>that is jacked up as well... 
> 
> LOG4J.PROPERTIES:
> log4j.debug=true
> log4j.root=ALL, LOGFILE, PORT
> 
> # Console output may be nice at one point or another... but not now 
> # CONSOLE is set to be a ConsoleAppender using a PatternLayout.
> #log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
> #log4j.appender.CONSOLE.Threshold=INFO
> #log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
> #log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
> 
> # LOGFILE is set to be a File appender using a PatternLayout.
> log4j.appender.LOGFILE=org.apache.log4j.FileAppender
> log4j.appender.LOGFILE.File=correlation-messenger.log
> log4j.appender.LOGFILE.Append=true
> log4j.appender.LOGFILE.Threshold=INFO
> log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
> log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
> 
> # PORT Logs all events 
> log4j.appender.PORT=org.apache.log4j.net.SocketAppender
> log4j.appender.PORT.RemoteHost=localhost
> log4j.appender.PORT.threshold=ALL
> log4j.appender.PORT.layout=org.apache.log4j.PatternLayout
> log4j.appender.PORT.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
> 
> 
> 
>      


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message