logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Deboy" <sde...@comotivsystems.com>
Subject RE: chainsaw 'sftp:/host/file.xml' is not a valid URL
Date Thu, 27 Mar 2008 20:15:19 GMT
You can't use 
File | Load Remote log4j file
to load a VFS-accessible file..you have to add a 'plugin' section to your chainsaw log4j.xml,
or specify the receiver through the (clunky) receivers panel in the UI itself.

If you go to the Welcome tab, click on the 'view example receiver configuration' button and
copy this file, remove all the plugins except the VFSLogFilePatternReceiverWithUserInfoPrompt
plugin and change the values to match your environment.

Save the file off, make sure the URL to the chainsaw xml config file is specified in the 'automatic
configuration URL' field in the 'view/show application-wide preferences' screen, then restart
Chainsaw.  When Chainsaw starts, you should be prompted for the username and password needed
to load the file.

Scott Deboy
111 SW Columbia Street Ste. 950
Portland, OR  97201

Telephone:      503.224.7496
Cell:           503.997.1367
Fax:            503.222.0185



-----Original Message-----
From: Douglas_E_Wegscheid@whirlpool.com [mailto:Douglas_E_Wegscheid@whirlpool.com]
Sent: Thu 3/27/2008 7:54 AM
To: log4j-user@logging.apache.org
Subject: chainsaw 'sftp:/host/file.xml' is not a valid URL
I am trying to use chainsaw to open an sftp accessible remote xml log 
file. I am running on Windows XP.

This is what my .chainsaw/plugins looks like:

11/21/2007  07:28 PM            60,841 commons-logging-1.1.1.jar
08/23/2007  06:44 AM           373,438 commons-vfs-20070823.jar
12/29/2003  12:00 AM            65,261 jakarta-oro-2.0.8.jar
03/27/2008  09:41 AM           206,178 jsch-0.1.37.jar
03/27/2008  09:35 AM            13,477 log4j-chainsaw-vfs.jar

Chainsaw is logging a few warnings when it comes up:

Failed to locate Receiver class:org.apache.log4j.net.JMSReceiver
Failed to locate Receiver class:org.apache.log4j.db.DBReceiver
Failed to locate Receiver class:org.apache.log4j.db.CustomSQLDBReceiver
Failed to locate Receiver class:org.apache.log4j.xml.LogFileXMLReceiver

I am doing a File | Load Remote log4j file. The URL I am using is:


I always get a dialog box
'sftp://userid:password@hostname/home/wpsapsrv/batch/log4j.log.xml' is not 
a valid URL.

I am a little confused as whether or not I have misconfigured, or if 
remote XML files are not supported by chainsaw, or if I still need the 
LogFileXMLReceiver to do this?

Can anyone help me figure out what I have done wrong?

Douglas E Wegscheid
Lead Technical Analyst, Whirlpool Corporation

"A wrong note played hesitatingly is a wrong note. A wrong note played 
with conviction is interpretation."

View raw message