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 tim hood <ti...@hotmail.co.uk> on 2005/11/17 23:36:49 UTC

Eclipse log4j extension plugin not working

I've very successfully used log4j-1.2.12 as a plugin within Eclipse RCP 
applications.

Now I've written a simple new FileAppender that has the time and date in 
it's file name.

I've compiled that into a jar which I've made into an separate Eclipse 
plugin.

However when I run an Eclipse RCP which has the original log4j plugin and my 
new extension plugin when I configure log4j via a properties file my new 
Appender class is not found and I get the ClassNotFoundException listed 
below.

The RCP application can see the right classes because I can programmatically 
create my new Appender class.

Any ideas very gratefully received.



log4j:ERROR Could not instantiate class 
[com.aeroint.log4j.extensions.TimestampedFileAppender].
java.lang.ClassNotFoundException: 
com.aeroint.log4j.extensions.TimestampedFileAppender
        at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:403)
        at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
        at 
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
        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:178)

_________________________________________________________________
The new MSN Search Toolbar now includes Desktop search! 
http://toolbar.msn.co.uk/


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org