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 Thu, 11 Aug 2005 21:23:38 GMT

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message