[ https://issues.apache.org/jira/browse/LOG4J2-1664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ludovic HOCHET updated LOG4J2-1664: ----------------------------------- Attachment: patch-log4j2-1664-4.diff patch-log4j2-1664-4.diff fixes "Cannot cast org.apache.logging.log4j.core.osgi.BundleContextSelector to org.apache.logging.log4j.core.selector.ContextSelector" which was caused by the ContextSelector being both loaded from OSGi context and from the classpath, the later because of the dependencies in the pom on api and core which are not needed as no Log4J code is directly executed in the tests, removing the dependencies fixes the issue. The patch also rename infoMethod to errorMethod in AbstractLoadBundleTest::log to better represent that it is using Logger::error {noformat} mvn clean then mvn install ------------------------------------------------------------------------ Reactor Summary: Apache Log4j 2 ..................................... SUCCESS [ 0.994 s] Apache Log4j API ................................... SUCCESS [ 15.672 s] Apache Log4j Core .................................. SUCCESS [15:00 min] Apache Log4j 1.x Compatibility API ................. SUCCESS [ 9.855 s] Apache Log4j SLF4J Binding ......................... SUCCESS [ 5.356 s] Apache Log4j to SLF4J Adapter ...................... SUCCESS [ 3.467 s] Apache Log4j Commons Logging Bridge ................ SUCCESS [ 2.993 s] Apache Log4j Flume Bridge .......................... SUCCESS [ 28.776 s] Apache Log4j Web ................................... SUCCESS [ 5.929 s] Apache Log4j Tag Library ........................... SUCCESS [ 14.783 s] Apache Log4j JMX GUI ............................... SUCCESS [ 2.003 s] Apache Log4j Samples ............................... SUCCESS [ 0.146 s] Apache Log4j Samples: Flume - Common ............... SUCCESS [ 2.372 s] Apache Log4j Samples: Flume - Remote ............... SUCCESS [ 2.417 s] Apache Log4j Samples: Flume - Embedded ............. SUCCESS [ 4.552 s] Apache Log4j Samples: Configuration ................ SUCCESS [ 2.689 s] Apache Log4j Samples: LoggerProperties ............. SUCCESS [ 2.887 s] Apache Log4j Scala 2.11 wrapper for Log4j API ...... SUCCESS [ 19.293 s] Apache Log4j Samples: Scala API .................... SUCCESS [ 3.130 s] Apache Log4j OSGi .................................. SUCCESS [ 4.313 s] Apache Log4j BOM ................................... SUCCESS [ 1.515 s] Apache Log4j NoSQL ................................. SUCCESS [ 4.474 s] Apache Log4J Performance Tests ..................... SUCCESS [ 14.679 s] Apache Log4j Streaming Interface ................... SUCCESS [ 9.009 s] Apache Log4j JUL Adapter ........................... SUCCESS [ 9.596 s] Apache Log4j Liquibase Binding ..................... SUCCESS [ 6.400 s] Apache Log4j Scala 2.10 wrapper for Log4j API ...... SUCCESS [ 18.126 s] ------------------------------------------------------------------------ BUILD SUCCESS ------------------------------------------------------------------------ Total time: 18:17 min Finished at: 2016-12-27T18:47:19+01:00 Final Memory: 49M/531M ------------------------------------------------------------------------ {noformat} > Improve OSGi unit tests > ----------------------- > > Key: LOG4J2-1664 > URL: https://issues.apache.org/jira/browse/LOG4J2-1664 > Project: Log4j 2 > Issue Type: Improvement > Components: API, Core > Affects Versions: 2.7 > Reporter: Ludovic HOCHET > Fix For: 2.8 > > Attachments: patch-log4j2-1664-2.diff, patch-log4j2-1664-3.diff, > patch-log4j2-1664-4.diff > > > Following up on LOG4J2-1637, this ticket is to improve the OSGi unit tests. > Ideally they should catch issues like LOG4J2-1637, but other improvements are > welcome too. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org