[ https://issues.apache.org/jira/browse/LOG4J2-1664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15640849#comment-15640849 ]
Remko Popma commented on LOG4J2-1664: ------------------------------------- I believe the patch attached to LOG4J2-1637 has already been merged into master. Some of these tests fail and are marked @Ignored. As reported by Gary: {noformat} ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.logging.log4j.osgi.tests.felix.FelixLoadApiBundleTest Running org.apache.logging.log4j.osgi.tests.equinox.EquinoxLoadApiBundleTest DEBUG: WIRE: [1.0] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework)(version>=1.6.0)(!(version>=2.0.0))) -> [0] DEBUG: WIRE: [1.0] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework.wiring)(version>=1.0.0)(!(version>=2.0.0))) -> [0] DEBUG: WIRE: [1.0] osgi.ee; (&(osgi.ee=JavaSE)(version=1.7)) -> [0] DEBUG: WIRE: [1.0] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework)(version>=1.6.0)(!(version>=2.0.0))) -> [0] DEBUG: WIRE: [1.0] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework.wiring)(version>=1.0.0)(!(version>=2.0.0))) -> [0] DEBUG: WIRE: [1.0] osgi.ee; (&(osgi.ee=JavaSE)(version=1.7)) -> [0] Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.382 sec <<< FAILURE! - in org.apache.logging.log4j.osgi.tests.equinox.EquinoxLoadApiBundleTest testMissingImportOfCoreOsgiPackage(org.apache.logging.log4j.osgi.tests.equinox.EquinoxLoadApiBundleTest) Time elapsed: 1.211 sec <<< ERROR! org.osgi.framework.BundleException: The bundle "org.apache.logging.log4j.core_2.7.1.SNAPSHOT [2]" could not be resolved. Reason: Missing Constraint: Import-Package: javax.jms; version="[1.1.0,2.0.0)" testSimpleLogInAnOsgiContext(org.apache.logging.log4j.osgi.tests.equinox.EquinoxLoadApiBundleTest) Time elapsed: 0.183 sec <<< ERROR! org.osgi.framework.BundleException: The bundle "org.apache.logging.log4j.core_2.7.1.SNAPSHOT [2]" could not be resolved. Reason: Missing Constraint: Import-Package: javax.jms; version="[1.1.0,2.0.0)" DEBUG: WIRE: [1.0] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework)(version>=1.6.0)(!(version>=2.0.0))) -> [0] DEBUG: WIRE: [1.0] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.framework.wiring)(version>=1.0.0)(!(version>=2.0.0))) -> [0] DEBUG: WIRE: [1.0] osgi.ee; (&(osgi.ee=JavaSE)(version=1.7)) -> [0] Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.51 sec <<< FAILURE! - in org.apache.logging.log4j.osgi.tests.felix.FelixLoadApiBundleTest testMissingImportOfCoreOsgiPackage(org.apache.logging.log4j.osgi.tests.felix.FelixLoadApiBundleTest) Time elapsed: 1.641 sec <<< ERROR! org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.logging.log4j.core [2]: Unable to resolve 2.0: missing requirement [2.0] osgi.wiring.package; (&(osgi.wiring.package=javax.jms)(version>=1.1.0)(!(version>=2.0.0))) testSimpleLogInAnOsgiContext(org.apache.logging.log4j.osgi.tests.felix.FelixLoadApiBundleTest) Time elapsed: 0.231 sec <<< ERROR! org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.logging.log4j.core [2]: Unable to resolve 2.0: missing requirement [2.0] osgi.wiring.package; (&(osgi.wiring.package=javax.jms)(version>=1.1.0)(!(version>=2.0.0))) Results : Tests in error: EquinoxLoadApiBundleTest>AbstractLoadBundleTest.testMissingImportOfCoreOsgiPackage:150->AbstractLoadBundleTest.start:187 ╗ Bundle EquinoxLoadApiBundleTest>AbstractLoadBundleTest.testSimpleLogInAnOsgiContext:118->AbstractLoadBundleTest.start:187 ╗ Bundle FelixLoadApiBundleTest>AbstractLoadBundleTest.testMissingImportOfCoreOsgiPackage:150->AbstractLoadBundleTest.start:187 ╗ Bundle FelixLoadApiBundleTest>AbstractLoadBundleTest.testSimpleLogInAnOsgiContext:118->AbstractLoadBundleTest.start:187 ╗ Bundle Tests run: 6, Failures: 0, Errors: 4, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.640 s [INFO] Finished at: 2016-11-03T08:45:12-07:00 [INFO] Final Memory: 39M/440M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project log4j-osgi: There are test failures. [ERROR] [ERROR] Please refer to E:\vcs\git\apache\logging\logging-log4j2\log4j-osgi\target\surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException {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 > > 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