“Both bundles”?  In OSGi doesn’t that mean they will have separate ClassLoaders?

Ralph

> On Feb 10, 2015, at 2:15 AM, Honey Goyal <[email protected]> wrote:
> 
> I am getting thise error *ERROR StatusLogger Log4j2 could not find a logging
> implementation. Please add log4j-core to the classpath. Using SimpleLogger
> to log to the console...*
> 
> I checked LoaderUtil.java's static block, I found these
> *[sun.misc.Launcher$AppClassLoader@f4b2263, 
> org.apache.logging.log4j.api [65],
> sun.misc.Launcher$AppClassLoader@f4b2263]* class loader in karaf runtime 
> container.
> 
> This method tried to find *META-INF/log4j-provider.properties* file in
> resources, which it not able to found. That's 
> why this *ProviderUtil.hasProviders()* returns false.
> 
> I am using log4j-api 2.1 and log4j-core 2.1. Both bundles i have installed
> in karaf container.
> 
> Any suggestions?
> 
> 
> 
> --
> View this message in context: 
> http://apache-logging.6191.n7.nabble.com/Classloader-issue-in-karaf-tp53722.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]
> 


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

Reply via email to