Hi, This seemed to work, sort of:
> org.osgi.framework.bootdelegation=sun.*,com.sun.*, org.apache.log4j.* There was a class cast exception, as follows: > ERROR: EventDispatcher: Error during dispatch. (java.lang.ClassCastException: org.ops4j.pax.logging.internal.PaxLoggingServiceImpl$1ManagedPaxLoggingS ervice can not be cast to org.ops4j.pax.logging.PaxLoggingService) And, some other posthemus weird error from pax: > org.ops4j.pax.logging.pax-logging-api[org.apache.felix.configadmin] : [org.osgi.service.log.LogService,org.knopflerfish.service.log.LogService ,org.ops4j.pax.logging.PaxLoggingService, org.osgi.service.cm.ManagedService]: Unexpected problem updating configuration java.lang.VerifyError: (class: org/apache/log4j/Hierarchy, method: updateChildren signature: (Lorg/apache/log4j/ProvisionNode;Lorg/apache/log4j/Logger;)V) Incompatible type for getting or setting field In the end, I am not a fan of these heavy weight loggers... I'll probably just write my own file logger... But, I'll respond to Karl's question(s) next... Thanks, Craig -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sahoo Sent: Monday, July 07, 2008 10:08 AM To: dev@felix.apache.org Subject: Re: using pax-logger/log4j in embedded felix (class loader issue) > 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. 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. Thanks, Sahoo