Hi, I have the same problem, and I could't fix it, I move the order of my
log4j.rootLogger 
and didn't solve my problem then I comment my fileAppender, and
ConsoleAppender and leave 
only the SocketAppender and restart my chainsaw and din't work.  I'm using
winxp in my chainsaw 
client and winNT4 for the instance of log4j, jsdk 1.4.2_05 latest chainsaw
in the webstart and 
Log4j-1.2.8.

Any ideas, 

Thanks a lot, 
Juan Jose Garcia

log4j.rootLogger=DEBUG, CHAINSAW_CLIENT, stdout, AppXML
#appender para la consola
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
#para xml, AppXML
log4j.appender.AppXML=org.apache.log4j.FileAppender
log4j.appender.AppXML.file=D:/Lealtad/logs/log_lealtad.xml
log4j.appender.AppXML.layout=org.apache.log4j.xml.XMLLayout
log4j.appender.AppXML.append=true
#appender para Chainsaw, CHAINSAW_CLIENT
log4j.appender.CHAINSAW_CLIENT=org.apache.log4j.net.SocketAppender
log4j.appender.CHAINSAW_CLIENT.RemoteHost=jgarcia
log4j.appender.CHAINSAW_CLIENT.Port=4560
log4j.appender.CHAINSAW_CLIENT.LocationInfo=true


-----Original Message-----
From: Scott Deboy [mailto:[EMAIL PROTECTED] 
Sent: Miércoles, 15 de Septiembre de 2004 05:00 p.m.
To: Log4J Users List [EMAIL PROTECTED]
Subject: RE: Chainsaw ClassNotFoundException issue


This was just discussed and worked through in a bugzilla issue:
http://issues.apache.org/bugzilla/show_bug.cgi?id=31178

The %L in patternlayout seems to be causing the problem for most people.  If
you are using %L in a filelayout, here are your options:

- move the socketappender in front of the fileappender, as in 
log4j.rootLogger=debug, stdout, socketappender, fileappender
- or remove the %L from the pattern

If you still want to see locationinfo from inside Chainsaw, you can have
Chainsaw parse and tail the log file you're generating with the fileappender
using a LogFilePatternReceiver.

Here's an example logFilePatternReceiver config:
<plugin name="logFileReceiver"
class="org.apache.log4j.varia.LogFilePatternReceiver">
  <param name="fileURL" value="file:///c:/downloads/log4j/sample.log" />
  <param name="timestampFormat" value="yyyyMMddHHmmssSSS"/>
  <param name="logFormat" value="TIMESTAMP LEVEL(FILE:LINE)#CLASS,LOGGER
THREAD!MESSAGE"/>
  <param name="name" value="logfileReceiver" />
  <param name="tailing" value="true" />
 </plugin>

Scott




-----Original Message-----
From:   Vance Cochrane [mailto:[EMAIL PROTECTED]
Sent:   Wed 9/15/2004 3:45 PM
To:     [EMAIL PROTECTED]
Cc:     
Subject:        Chainsaw ClassNotFoundException issue
Hello,
Situation is this: installed jsdk 1.4.2_05 on Win2k
Run java web start, get the latest version of
chainsaw.
I have SocketAppenders that have always worked in the
past yet now I get the following exception displayed
in Chainsaw whenever a SocketAppender attempts to
connect:

java.lang.ClassNotFoundException: org.apache.log4j.spi.LocationInfo ...

On further investigation, I found in the javaw cache
that the jar file used for log4j that is the latest, RMlog4j-1.3alpha.jar
has the following path to
LocationInfo:
org/apache/log4j/spi/location/LocationInfo.class

yet in the log4j-1.2.8.jar file the path is:
org/apache/log4j/spi/LocationInfo.class

Any Ideas on what would solve this? I didn't want to
write a bug on this until I checked.

Thanks, vance




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Reply via email to