I was able to get Chainsaw to load VFS files via smb, but... I couldn't get the (current) WebStart version of Chainsaw to load the file (I had to use the trunk versions of Chainsaw/VFSLogFilePatternReceiver).
I had to modify the vfs core and sandbox jars: - build vfs trunk via mvn install (creates core and sandbox jars) - jar xvf the vfs core jar - jar xvf the vfs sandbox jar - overwrite core/META-INF/providers.xml with the sandbox vfs-providers.xml (and delete sandbox vfs-providers.xml) - re-jar vfs core and vfs sandbox, and copy both to .chainsaw/plugins I was then able to get the file to load successfully.. Scott Deboy COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Telephone: 503.224.7496 Cell: 503.997.1367 Fax: 503.222.0185 [EMAIL PROTECTED] www.comotivsystems.com -----Original Message----- From: [EMAIL PROTECTED] on behalf of Aux Board Sent: Tue 8/19/2008 2:36 AM To: Log4J Users List Subject: Re: ChainSaw - accessing a file on a VM Thanks again. Nearly there! :-) To nail the coffin of this problem, I'd appreciate receiving help re the following: "file not available - will try again in 10 seconds" message is appearing in the chainsaw-log. Following is my configuration and I'll appreciate this final help (at least re this issue for now!): *chainsaw.xml:* <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true"> <appender name="A2" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j.SimpleLayout"/> </appender> <plugin name="VFSLogFilePatternReceiverWithUserInfoPrompt" class="org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver"> <param name="fileURL" value="smb://192.168.1.100/log/ekeeper.log"/> <param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/> <param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER (FILE:LINE) - MESSAGE"/> <param name="name" value="sampleLogFilePatternReceiver"/> <param name="promptForUserInfo" value="true"/> <param name="tailing" value="true"/> </plugin> <root> <level value="DEBUG"/> </root> </log4j:configuration> Following files in my *..\.chainsaw\plugins *directory: commons-logging-1.1.1.jar commons-vfs-1.0.jar jcifs-1.2.25b.jar log4j-chainsaw-vfs.jar also I have the "Ok to remove SecurityManager" option ticked in "*Application-wide Preferences*". Thanks again, Doost 2008/8/18 Scott Deboy <[EMAIL PROTECTED]> > OK, here are the details: > > Follow the instructions here: > http://logging.apache.org/chainsaw/distributionnotes.html > > The $user.home/.chainsaw folder will already exist, but you'll have to > create the $user.home/.chainsaw/plugins folder and copy the required > jars into that folder. > > I have these jars in my .chainsaw/plugins folder: > commons-logging-1.1.1.jar > commons-vfs-1.0.jar > log4j-chainsaw-vfs.jar > > You'll need to add the jCIFs jar to that folder > > Also, under application-wide settings, there is a 'remove security > manager' checkbox that you need to check. > > Restart Chainsaw and it should work. > > The chainsaw-log tab will contain additional information if you don't > see the receiver in the receivers panel or no tab is created containing > the events. > > > For those of you using VFS to access ssh-accessible files with the > WebStart version of Chainsaw: > > Add the target server to your $user.home/.ssh/known_hosts file (this > requirement is removed in trunk but that version has not yet been > released). > > > Scott Deboy > Principal Engineer > COMOTIV SYSTEMS > 111 SW Columbia Street Ste. 950 > Portland, OR 97201 > Office: 503.224.7496 > Direct Line: 503.821.6482 > Cell: 503.997.1367 > Fax: 503.222.0185 > [EMAIL PROTECTED] > www.comotivsystems.com > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Aux Board > Sent: Monday, August 18, 2008 6:53 AM > To: Log4J Users List > Subject: Re: ChainSaw - accessing a file on a VM > > Thank you to all those who kindly responded (ie Jacob, Scott and Curt). > A question for Scott. I'm trying to use Jakarta Commons VFS but can't > get it > to work (java.lang.ClassNotFoundException: > org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver)! Is there > anywhere > a straightforward 101 checklist that I can use instead? I have Win2000 > installed on the VM (where the log file is) and XP on the workstation > with > the ChainSaw. > Thanks once again, > Doost/Mehyar > > 2008/8/14 Curt Arnold <[EMAIL PROTECTED]> > > > > > On Aug 14, 2008, at 11:04 AM, Curt Arnold wrote: > > > >> Looks like you'd be better off using the shared folders capabilities > of > >> your VM software and access the log file with a local path name. > >> > >> > >> > > Or you could use NET USE to map the share to a drive letter and then > use > > the drive letter in the URL. > > > > c:\> NET USE q: \\192.168.1.100\folder /USER:foo /PASSWORD:bar > > > > Then use file:///q:/share-path > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]