Hi, what does this error msg. mean? ERROR StatusLogger org.apache.logging.log4j.core.impl.Log4jContextFactory does not implement org.apache.logging.log4j.spi.LoggerContextFactory
In an OSGi-environment the container decides which package is imported if there is more than one package of the same version available. This decision depends on the start-order of the bundles (order of exported packages). All importing bundles have to use the same package, no matter which bundle exports it. Startorder-dependent behavior should never happen in an OSGi-environment. If so, then we have a poorly designed architecture. The bundle which uses log4j2-API imports a different LoggerContextFactory than the core(?) does. Where is my mistake? What can I do? Thx & regards ------------------------------------------------------------------------------------------------- START LEVEL 4 ID|State |Level|Name 0|Active | 0|System Bundle (4.2.1) 5|Active | 2|Apache Felix Configuration Admin Service (1.6.0) 6|Active | 2|Apache Felix Declarative Services (1.6.2) 7|Active | 2|Apache Felix EventAdmin (1.3.2) 8|Active | 2|Apache Felix Gogo Command (0.12.0) 9|Active | 2|Apache Felix Gogo Runtime (0.10.0) 10|Active | 2|Apache Felix Gogo Shell (0.10.0) 11|Resolved | 2|Apache Felix Security Provider (2.2.0) 12|Active | 2|Apache Felix Shell Service (1.4.3) 13|Active | 2|Apache Log4j 1.x Compatibility API (2.0.0.beta9-SNAPSHOT) 14|Active | 2|Apache Log4j API (2.0.0.beta9-SNAPSHOT) 15|Active | 2|Apache Log4j Commons Logging Bridge (2.0.0.beta9-SNAPSHOT) 16|Resolved | 2|Apache Log4j Core (2.0.0.beta9-SNAPSHOT) 17|Active | 2|Apache Log4j SLF4J Binding (2.0.0.beta9-SNAPSHOT) 18|Active | 2|cal10n-api (0.7.4) 19|Active | 2|Commons IO (2.4.0) 20|Active | 2|Commons Lang (2.6.0) 21|Active | 2|Disruptor Framework (3.1.1) 22|Active | 2|Jackson-annotations (2.2.2) 23|Active | 2|Jackson-core (2.2.2) 24|Active | 2|jackson-databind (2.2.2) 25|Active | 2|JSON.simple (1.1.1) 26|Active | 2|MongoDB Java Driver (2.11.2.RELEASE) 27|Active | 2|slf4j-api (1.7.5) 28|Active | 2|slf4j-ext (1.7.5) g! inspect cap * 14 org.apache.logging.log4j-api [14] provides: osgi.wiring.bundle; org.apache.logging.log4j-api 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.host; org.apache.logging.log4j-api 2.0.0.beta9-SNAPSHOT required by: my.log4j2-config [1] org.apache.logging.log4j-core [16] osgi.wiring.package; org.apache.logging.log4j.message 2.0.0.beta9-SNAPSHOT required by: org.apache.logging.log4j-slf4j-impl [17] org.apache.logging.log4j-jcl [15] org.apache.logging.log4j-1.2-api [13] osgi.wiring.package; org.apache.logging.log4j.util 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.simple 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.status 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j 2.0.0.beta9-SNAPSHOT required by: org.apache.logging.log4j-slf4j-impl [17] my.LogService [2] org.apache.logging.log4j-1.2-api [13] my.LogServiceSPI[3] org.apache.logging.log4j-jcl [15] osgi.wiring.package; org.apache.logging.log4j.spi 2.0.0.beta9-SNAPSHOT required by: org.apache.logging.log4j-slf4j-impl [17] org.apache.logging.log4j-1.2-api [13] org.apache.logging.log4j-jcl [15] osgi.wiring.package; org.apache.logging.log4j.core.appender.rewrite 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.impl 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.pattern 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.appender.db.jpa.converter 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.web 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.filter 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core 2.0.0.beta9-SNAPSHOT required by: org.apache.logging.log4j-1.2-api [13] osgi.wiring.package; org.apache.logging.log4j.core.lookup 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.appender.db.nosql 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.appender.db.jdbc 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.appender 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.appender.db 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.selector 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.jmx 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.appender.db.nosql.couch 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.async 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.helpers 2.0.0.beta9-SNAPSHOT required by: org.apache.logging.log4j-1.2-api [13] osgi.wiring.package; org.apache.logging.log4j.core.config.plugins 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.layout 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.net 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.config 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.appender.rolling.helper 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.appender.db.nosql.mongo 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.appender.db.jpa 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.appender.rolling 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.core.appender.routing 2.0.0.beta9-SNAPSHOT [UNUSED] g! inspect cap * 13 org.apache.logging.log4j-1.2-api [13] provides: osgi.wiring.bundle; org.apache.logging.log4j-1.2-api 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.host; org.apache.logging.log4j-1.2-api 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.log4j 1.2.0 required by: my.bundles... osgi.wiring.package; org.apache.log4j.helpers 1.2.0 [UNUSED] osgi.wiring.package; org.apache.log4j.config 1.2.0 [UNUSED] osgi.wiring.package; org.apache.log4j.spi 1.2.0 [UNUSED] osgi.wiring.package; org.apache.log4j.xml 1.2.0 [UNUSED] g! inspect cap * 15 org.apache.logging.log4j-jcl [15] provides: osgi.wiring.bundle; org.apache.logging.log4j-jcl 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.host; org.apache.logging.log4j-jcl 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.apache.logging.log4j.jcl 2.0.0.beta9-SNAPSHOT [UNUSED] g! inspect cap * 17 org.apache.logging.log4j-slf4j-impl [17] provides: osgi.wiring.bundle; org.apache.logging.log4j-slf4j-impl 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.host; org.apache.logging.log4j-slf4j-impl 2.0.0.beta9-SNAPSHOT [UNUSED] osgi.wiring.package; org.slf4j.impl 1.7.5 required by: slf4j.api [27] osgi.wiring.package; org.slf4j.helpers 1.7.5 required by: slf4j.ext [28] osgi.wiring.package; org.apache.logging.slf4j 2.0.0.beta9-SNAPSHOT [UNUSED] -- View this message in context: http://apache-logging.6191.n7.nabble.com/Log4jContextFactory-does-not-implement-LoggerContextFactory-tp40136.html Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org