Check whether the added JARs include Commons Logging. I notice that
the Appender is named after Spring. Spring depends on Commons Logging
which is notorious for creating classloading challenges.

Brett


On 10/29/09, chrisgage <[email protected]> wrote:
>
> That was what I thought originally.  But that isn't it...
>
> The jars we added definitely do not contain a log4j.jar, (I have checked the
> source and unzipped the jar files to be sure) and the only one in the
> workspace is log4j-1.2.15.jar in the lib folder of the EAR project.  And all
> the jar manifests of the component projects point to lib/log4j-1.2.15.jar.
> We use IBM RAD7 and WebSphere 6.1.
>
>
> Bender Heri wrote:
>>
>> My guess: there are two log4j.jar, probably of different versions: one in
>> the parent classlaoder and one in the child classloader. Therefore java
>> regards these two as different classes.
>> Heri
>>
>> -----Ursprüngliche Nachricht-----
>> Von: chrisgage [mailto:[email protected]]
>> Gesendet: Mittwoch, 28. Oktober 2009 14:53
>> An: [email protected]
>> Betreff: FileAppender is not assignable to Appender
>>
>> With an application we have been running in production, we recently added
>> some jar files from another department's application in order to have the
>> wto apps communicate.
>>
>> Since then we have been getting the following error in the log at
>> application startup.  It does not appear to cause log4j to stop working,
>> it's just a worrying thing to see in the log.  I am using log4j as a black
>> box at the simplest possible level, so this message is completely
>> incomprehensible to me, and it gives no stack trace or other indication
>> where the problem is occurring.
>>
>> A "org.apache.log4j.FileAppender" object is not assignable to a
>> "org.apache.log4j.Appender" variable. The class
>> "org.apache.log4j.Appender" was loaded by
>> com.ibm.ws.classloader.compoundclassloa...@d940d94 Local ClassPath: ...
>> Delegation Mode: PARENT_FIRST whereas object of type
>> "org.apache.log4j.FileAppender" was loaded by
>> com.ibm.ws.classloader.compoundclassloa...@8060806 Local ClassPath: ...
>> Delegation Mode: PARENT_FIRST. Could not instantiate appender named
>> "SPRINGLOG".
>>
>> Actually this set of messages occurs twice, once for FileAppender and the
>> repeated almost identically for ConsoleAppender.
>>
>
> --
> View this message in context:
> http://www.nabble.com/FileAppender-is-not-assignable-to-Appender-tp26095007p26112525.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

-- 
Sent from my mobile device

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to