You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Pugazholi Thyagarasan <pu...@gmail.com> on 2005/08/04 02:22:58 UTC

Re: Chainsaw & sftp

Hi Scott,

Looks like I was missing the oro jar. I added and not getting the 
"pluginDirectory cannot be null, and it must exist and must be readable, 
using the normal Classloader" error anymore.

I am able to connect to the sftp site.

Thanks a lot for all your help,
Pugazh



On 8/3/05, Pugazholi Thyagarasan <pu...@gmail.com> wrote:
> 
> Hi Scott,
> 
> Thanks for your support.
> 
> I was using, log4j-chainsaw-1.3alpha-7.jar & log4j-1.3alpha-7.jar. If I 
> use the attached *log4j-~1.jar, *chainsaw is not getting loaded.
> 
> I get the below error ....
> 
> log4j:INFO Returning existing logger [
> org.apache.log4j.helpers.OptionConverter] in repository [default].
> LOG4J-INTERNAL: 2005-08-03 16:18:06,827 ERROR [main] 
> org.apache.log4j.helpers.OptionConverter#instantiateByCla
> ssName:361)- Could not instantiate object of class [
> org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver].
> java.lang.NoClassDefFoundError: 
> org/apache/log4j/varia/LogFilePatternReceiver
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at java.security.SecureClassLoader.defineClass(Unknown Source)
> 
> 
> &
> 
> LOG4J-INTERNAL: 2005-08-03 16:33:11,576 ERROR [main] 
> org.apache.log4j.joran.action.PluginAction#begin:70)- Cou
> ld not create a plugin. Reported error follows.
> 
> Some class file conflict?
> 
> -Pugazh
> 
> 
> On 8/2/05, Scott Deboy <sd...@comotivsystems.com> wrote:
> > 
> > I tried it on windows and it works.. here's what I had to do:
> > 
> > 1. make sure my server name (or ip, whatever I'm using as the server in 
> > the fileURL) is in known_hosts in c:/documents and 
> > settings/myusername/.ssh/known_hosts
> > 
> > on another system this should still be $user_home/.ssh/known_hosts
> > 
> > 2. here's the value of the fileURL param I used:
> > 
> > sftp://myuserid:mypassword@my.server.name:22/fully/qualified/path/to/log.txt
> > 
> > notice it's a fully qualified path and the port (22) is added after the 
> > server
> > 
> > Good luck
> > 
> > -----Original Message-----
> > From: Pugazholi Thyagarasan [mailto:pugazholi@gmail.com]
> > Sent: Tue 8/2/2005 6:09 PM
> > To: Scott Deboy
> > Subject: Re: Chainsaw & sftp
> > 
> > Hi Scott,
> > 
> > Thanks for the infomation. 
> > 
> > I am unable to make sftp work. I did copy all the required lib. and do 
> > have
> > the traget server in know_hosts. I also added know_hosts to system PATH.
> > 
> > I am getting the below LEVEL ERROR logs in chain saw,
> > 
> > 1.
> > Logger org.apache.log4j.chainsaw.plugins.PluginClassLoaderFactory
> > Time 2005-08-02 17:59:27,432
> > Thread Thread-1
> > Message pluginDirectory cannot be null, and it must exist and must be
> > readable, using the normal Classloader 
> > 2.
> > 
> > Logger org.apache.log4j.chainsaw.vfs.VFSPlugin
> > Time 2005-08-02 17:59:28,333
> > Thread Thread-1
> > Message Failed to initialise VFS
> > 
> > This is my plug-in info,
> > 
> > <plugin name="ssh-example2" class=" 
> > org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver">
> > <param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/>
> > <param name="logFormat" value="TIMESTAMP LEVEL [THREAD] CLASS 
> > (FILE:LINE) - 
> > MESSAGE" />
> > <param name="fileURL" value="
> > sftp://username:pwd@myserver.server.com/log4j.log" />
> > <param name="tailing" value="true" /> 
> > </plugin>
> > 
> > What could be wrong?
> > 
> > Thanks
> > Pugazh
> > 
> > 
> > On 7/27/05, Scott Deboy <sd...@comotivsystems.com> wrote:
> > >
> > > See org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver . You'll
> > > need the 1.3 alpha chainsaw and log4j jars in your classpath as well 
> > as
> > > the VFS-required libraries.
> > >
> > > You'll also need the target server in your known_hosts file.
> > >
> > > Configuration is identical to LogFilePatternReceiver except the 
> > fileURL 
> > > can be urls supported by the Jakarta VFS project.
> > >
> > > Javadoc for VFSLogFilePatternReceiver here:
> > > http://cvs.apache.org/viewcvs.cgi/logging-chainsaw/src/java/org/apache/l 
> > 
> > > og4j/chainsaw/vfs/VFSLogFilePatternReceiver.java?rev=1.2&view=markup
> > >
> > >
> > > The VFS docs describe the required libraries for accessing files via
> > > sftp:
> > > http://jakarta.apache.org/commons/vfs/
> > >
> > > Scott
> > >
> > > -----Original Message-----
> > > From: Pugazholi Thyagarasan [mailto:pugazholi@gmail.com]
> > > Sent: Tuesday, July 26, 2005 12:05 PM 
> > > To: log4j-user@logging.apache.org
> > > Subject: Chainsaw & sftp
> > >
> > > Hi
> > > I am trying to load remote log4j files to Chainsaw from a unix 
> > servers. 
> > > Since the servers only allow secure ftp, I was unable to use the URL
> > > with the format -
> > > ftp://username:password@ftp.server.com/mydir/log4j.log .
> > >
> > > Is there a way to load the log4j log file to Chainsaw using sftp?
> > >
> > > --
> > > Thanks, Pugazh
> > > http://www.imayam.org
> > >
> > 
> > 
> > 
> > -- 
> > Thanks, Pugazh
> > http://www.imayam.org
> > 
> > 
> > 
> 
> 
> 


-- 
Thanks, Pugazh
http://www.imayam.org
(925) 708-0470 (m)