felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Pauls" <karlpa...@gmail.com>
Subject Re: using pax-logger/log4j in embedded felix (class loader issue)
Date Mon, 07 Jul 2008 14:15:26 GMT
On Mon, Jul 7, 2008 at 4:08 PM, Sahoo <Sahoo@sun.com> wrote:
>
>> log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not
>> assignable to a "
>>
>> org.apache.log4j.Appender" variable.
>>
>> log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
>>
>> log4j:ERROR [7.0] whereas object of type
>>
>> log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
>> [WebappClassLoader
>>
>>  delegate: false
>>
>>
>
> As someone already pointed out, this seems to be the real issue.

Why would that be an issue?

> Try setting the following in felix/config.properties file or whatever equivalent way
to
> pass it while invoking Felix using an API:
>
> org.osgi.framework.bootdelegation=sun.*,com.sun.*, org.apache.log4j.*
> I am not suggesting this as a long term solution, but this can take us
> towards the solution.

How?

regards,

Karl

> Thanks,
> Sahoo
>



-- 
Karl Pauls
karlpauls@gmail.com

Mime
View raw message