logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manda, Sampath \(Contractor\)" <sma...@harris.com>
Subject RE: ClassNotFoundException: LogFilePatternReceiver- 2
Date Wed, 17 Aug 2005 17:23:59 GMT

Hi , 

Thanks a lot.
This suggestion worked.

Regards
Sampath



-----Original Message-----
From: Pugazholi Thyagarasan [mailto:pugazholi@gmail.com] 
Sent: Monday, August 15, 2005 10:45 PM
To: Log4J Users List
Subject: Re: ClassNotFoundException: LogFilePatternReceiver- 2


I had the same issue. Try adding jakarta-oro-2.0.6.jar to the class
path. 

After few trial and errors below works fine for me,

java -classpath log4j-1.3alpha-7.jar;log4j-chainsaw-1.3alpha-7.jar;ugli-
simple.jar;log4j-xml.jar;log4j-optional.jar;commons-vfs-1.0-RC2.jar;comm
ons-
logging.jar;commons-logging-api.jar;commons-net-1.4.0.jar;jsch-0.1.21.ja
r
;jakarta-oro-2.0.6.jar;log4j-oro.jar org.apache.log4j.chainsaw.LogUI


On 8/11/05, Manda, Sampath (Contractor) <smanda@harris.com> wrote:
> 
> 
> Hi ,
> 
> Would appreciate if any one could spend some time on the below issue. 
> Hope this is a Known Issue and someone knows the solution out there.
> 
> Thanks a lot
> Sampath
> 
> > -----Original Message-----
> > From: Manda, Sampath (Contractor)
> > Sent: Wednesday, August 10, 2005 1:30 PM
> > To: 'log4j-user@logging.apache.org'
> > Subject: ClassNotFoundException: LogFilePatternReceiver
> >
> >
> >
> > Hi ,
> >
> > I am using the latest version of chainsaw (local copy and using
> > chainsaw.bat)
> >
> >
> > Below is chainsaw configuration
> >
> >
> > <plugin name="LogFileReceiver" 
> > class="org.apache.log4j.varia.LogFilePatternReceiver">
> > <param name="fileURL" value="file:///C:/Tomcat 5.5/logs/hrs.log"/>
> > <param name="timestampFormat" value="yyyy-MM-dd
> > HH:mm:ss,SSS"/>
> > <param name="logFormat" value="TIMESTAMP
> > LEVEL(FILE:LINE)#CLASS,LOGGER THREAD!MESSAGE"/>
> > <param name="name" value="LogFileReceiver"/>
> > <param name="tailing" value="true"/>
> > </plugin>
> >
> >
> >
> > Unable to add a receiver due to the below exception.
> > ClassNotFoundException: 
> > org.apache.log4j.varia.LogFilePatternReceiver
> >
> > This class is present in log4j-oro.jar . But if I add this in 
> > classpath ( in chainsaw.bat) chainsaw itself does not start
> >
> >
> >
> > Request help at the earliest.
> >
> >
> > Thanks
> > Sampath
> >
> >
> >
> >
> > LOG4J-INTERNAL: 2005-08-10 13:11:11,679 ERROR [Thread-8]
> > org.apache.log4j.helpers.OptionConverter#instantiateByClassName:363)
> > -
> > C
> > ould not instantiate object of class
> > [org.apache.log4j.varia.LogFilePatternReceiver].
> > java.lang.ClassNotFoundException:
> > org.apache.log4j.varia.LogFilePatternReceiver
> > at java.net.URLClassLoader$1.run(Unknown Source)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(Unknown Source)
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> > at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Unknown Source)
> > at org.apache.log4j.helpers.Loader.loadClass(Loader.java:162)
> > at
> >
org.apache.log4j.helpers.OptionConverter.instantiateByClassName(Option
> > Converter.java:340)
> > at
> >
org.apache.log4j.joran.action.PluginAction.begin(PluginAction.java:47)
> > at
> >
org.apache.log4j.joran.spi.Interpreter.callBeginAction(Interpreter.jav
> > a:239)
> > at
> >
org.apache.log4j.joran.spi.Interpreter.startElement(Interpreter.java:1
> > 31)
> > at
> >
org.apache.log4j.joran.spi.JoranDocument$StartElementEvent.replay(Jora
> > nDocument.java:225)
> > at
> >
org.apache.log4j.joran.spi.JoranDocument.replay(JoranDocument.java:113
> > )
> > at
> >
org.apache.log4j.joran.JoranConfigurator.doConfigure(JoranConfigurator
> > .java:170)
> > at
> >
org.apache.log4j.joran.JoranConfigurator.doConfigure(JoranConfigurator
> > .java:89)
> > at
> >
org.apache.log4j.chainsaw.LogUI.loadConfigurationUsingPluginClassLoade
> > r(LogUI.java:1846)
> > at org.apache.log4j.chainsaw.LogUI.access$1800(LogUI.java:134)
> > at org.apache.log4j.chainsaw.LogUI$43.run(LogUI.java:1318)
> > at java.lang.Thread.run(Unknown Source)
> > LOG4J-INTERNAL: 2005-08-10 13:11:11,689 ERROR [Thread-8]
> > org.apache.log4j.joran.action.PluginAction#begin:70)- Could not
create
> > a plugin. Reported error follows.
> > java.lang.NullPointerException
> > at
> >
org.apache.log4j.joran.action.PluginAction.begin(PluginAction.java:57)
> > at
> >
org.apache.log4j.joran.spi.Interpreter.callBeginAction(Interpreter.jav
> > a:239)
> > at
> >
org.apache.log4j.joran.spi.Interpreter.startElement(Interpreter.java:1
> > 31)
> > at
> >
org.apache.log4j.joran.spi.JoranDocument$StartElementEvent.replay(Jora
> > nDocument.java:225)
> > at
> >
org.apache.log4j.joran.spi.JoranDocument.replay(JoranDocument.java:113
> > )
> > at
> >
org.apache.log4j.joran.JoranConfigurator.doConfigure(JoranConfigurator
> > .java:170)
> > at
> >
org.apache.log4j.joran.JoranConfigurator.doConfigure(JoranConfigurator
> > .java:89)
> > at
> >
org.apache.log4j.chainsaw.LogUI.loadConfigurationUsingPluginClassLoade
> > r(LogUI.java:1846)
> > at org.apache.log4j.chainsaw.LogUI.access$1800(LogUI.java:134)
> > at org.apache.log4j.chainsaw.LogUI$43.run(LogUI.java:1318)
> > at java.lang.Thread.run(Unknown Source)......
> > .............................................
> >
> >
> > 71994 [Thread-8] WARN org.apache.log4j.config.PropertySetter - 
> > Failed to set property [name] to value "LogFileReceiver".
> >
> 
> 


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

---------------------------------------------------------------------
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