{"action":"opened","issue":{"url":"https://api.github.com/repos/jgoodyear/ApacheKarafCookbook/issues/2","labels_url":"https://api.github.com/repos/jgoodyear/ApacheKarafCookbook/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jgoodyear/ApacheKarafCookbook/issues/2/comments","events_url":"https://api.github.com/repos/jgoodyear/ApacheKarafCookbook/issues/2/events","html_url":"https://github.com/jgoodyear/ApacheKarafCookbook/issues/2","id":55818876,"number":2,"title":"Java 8 issue with Pax Exam chapter10-recipe-simple","user":{"login":"deklanowski","id":1931033,"avatar_url":"https://avatars.githubusercontent.com/u/1931033?v=3","gravatar_id":"","url":"https://api.github.com/users/deklanowski","html_url":"https://github.com/deklanowski","followers_url":"https://api.github.com/users/deklanowski/followers","following_url":"https://api.github.com/users/deklanowski/following{/other_user}","gists_url":"https://api.github.com/users/deklanowski/gists{/gist_id}","starred_url":"https://api.github.com/users/deklanowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deklanowski/subscriptions","organizations_url":"https://api.github.com/users/deklanowski/orgs","repos_url":"https://api.github.com/users/deklanowski/repos","events_url":"https://api.github.com/users/deklanowski/events{/privacy}","received_events_url":"https://api.github.com/users/deklanowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-28T21:33:05Z","updated_at":"2015-01-28T21:33:05Z","closed_at":null,"body":"Hi,\r\nRunning the chapter10-recipe-simple results in the following test failure when running with Java 1.8 (1.7 is fine). There seems to be a bundle resolution issue that pertains to java.xml.apis missing. Do you know how to solve this ?\r\nThanks in advance,\r\nDeclan.\r\n\r\n`D:\\apps\\Java\\jdk1.8.0_11\\bin\\java -Dmaven.home=D:\\apps\\apache-maven-3.0.5 -Dclassworlds.conf=D:\\apps\\apache-maven-3.0.5\\bin\\m2.conf -Didea.launcher.port=7535 \"-Didea.launcher.bin.path=C:\\Program Files (x86)\\JetBrains\\IntelliJ IDEA 14.0\\bin\" -Dfile.encoding=UTF-8 -classpath \"D:\\apps\\apache-maven-3.0.5\\boot\\plexus-classworlds-2.4.jar;C:\\Program Files (x86)\\JetBrains\\IntelliJ IDEA 14.0\\lib\\idea_rt.jar\" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=14.0.2 test\r\n[INFO] Scanning for projects...\r\n[INFO]                                                                         \r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Building chapter10-recipe1-simple 1.0.0-SNAPSHOT\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] \r\n[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @ chapter10-recipe1-simple ---\r\n[INFO] \r\n[INFO] --- buildnumber-maven-plugin:1.2:create (default) @ chapter10-recipe1-simple ---\r\n[INFO] Checking for local modifications: skipped.\r\n[INFO] Updating project files from SCM: skipped.\r\n[INFO] Executing: cmd.exe /X /C \"git rev-parse --verify HEAD\"\r\n[INFO] Working directory: D:\\ApacheKarafCookbook-master\\chapter10\\chapter10-recipe1\\chapter10-recipe1-simple\r\n[INFO] Storing buildNumber: NOREVISION at timestamp: 2015-01-28 10:28:49\r\n[INFO] Executing: cmd.exe /X /C \"git rev-parse --verify HEAD\"\r\n[INFO] Working directory: D:\\ApacheKarafCookbook-master\\chapter10\\chapter10-recipe1\\chapter10-recipe1-simple\r\n[INFO] Storing buildScmBranch: UNKNOWN_BRANCH\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ chapter10-recipe1-simple ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] skip non existing resourceDirectory D:\\ApacheKarafCookbook-master\\chapter10\\chapter10-recipe1\\chapter10-recipe1-simple\\src\\main\\resources\r\n[INFO] \r\n[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ chapter10-recipe1-simple ---\r\n[INFO] No sources to compile\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ chapter10-recipe1-simple ---\r\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\r\n[INFO] Copying 1 resource\r\n[INFO] \r\n[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ chapter10-recipe1-simple ---\r\n[INFO] Nothing to compile - all classes are up to date\r\n[INFO] \r\n[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ chapter10-recipe1-simple ---\r\n[INFO] Surefire report directory: D:\\ApacheKarafCookbook-master\\chapter10\\chapter10-recipe1\\chapter10-recipe1-simple\\target\\surefire-reports\r\n\r\n-------------------------------------------------------\r\n T E S T S\r\n-------------------------------------------------------\r\nRunning com.packt.TestOsgiServices\r\n22:28:52.314 [main] INFO  o.o.pax.exam.spi.DefaultExamSystem - Pax Exam System (Version: 3.6.0) created.\r\n22:28:52.401 [main] INFO  o.o.pax.exam.junit.impl.ProbeRunner - creating PaxExam runner for class com.packt.TestOsgiServices\r\n22:28:52.939 [main] INFO  o.o.pax.exam.junit.impl.ProbeRunner - running test class com.packt.TestOsgiServices\r\norg.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.exam [1]: Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j)(version>=1.5.0)) [caused by: Unable to resolve 5.0: missing requirement [5.0] osgi.wiring.package; (osgi.wiring.package=javax.xml.parsers)]\r\n\tat org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)\r\n\tat org.apache.felix.framework.Felix.startBundle(Felix.java:1868)\r\n\tat org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)\r\n\tat org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\norg.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.exam.inject [2]: Unable to resolve 2.0: missing requirement [2.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.swissbox.tracker)(version>=1.7.0)(!(version>=2.0.0))) [caused by: Unable to resolve 11.0: missing requirement [11.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.lang)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl)]]\r\n\tat org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)\r\n\tat org.apache.felix.framework.Felix.startBundle(Felix.java:1868)\r\n\tat org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)\r\n\tat org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\norg.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.exam.extender.service [3]: Unable to resolve 3.0: missing requirement [3.0] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 5.0: missing requirement [5.0] osgi.wiring.package; (osgi.wiring.package=javax.xml.parsers)]\r\n\tat org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)\r\n\tat org.apache.felix.framework.Felix.startBundle(Felix.java:1868)\r\n\tat org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)\r\n\tat org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)ERROR: Bundle org.ops4j.pax.exam [1] Error starting link:classpath:META-INF/links/org.ops4j.pax.exam.link (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.exam [1]: Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j)(version>=1.5.0)) [caused by: Unable to resolve 5.0: missing requirement [5.0] osgi.wiring.package; (osgi.wiring.package=javax.xml.parsers)])\r\nERROR: Bundle org.ops4j.pax.exam.inject [2] Error starting link:classpath:META-INF/links/org.ops4j.pax.exam.inject.link (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.exam.inject [2]: Unable to resolve 2.0: missing requirement [2.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.swissbox.tracker)(version>=1.7.0)(!(version>=2.0.0))) [caused by: Unable to resolve 11.0: missing requirement [11.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.lang)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl)]])\r\nERROR: Bundle org.ops4j.pax.exam.extender.service [3] Error starting link:classpath:META-INF/links/org.ops4j.pax.extender.service.link (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.exam.extender.service [3]: Unable to resolve 3.0: missing requirement [3.0] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 5.0: missing requirement [5.0] osgi.wiring.package; (osgi.wiring.package=javax.xml.parsers)])\r\n\r\n\tat java.lang.Thread.run(Thread.java:745)\r\norg.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.logging.pax-logging-api [5]: Unable to resolve 5.0: missing requirement [5.0] osgi.wiring.package; (osgi.wiring.package=javax.xml.parsers)\r\n\tat org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)\r\n\tat org.apache.felix.framework.Felix.startBundle(Felix.java:1868)\r\n\tat org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)\r\n\tat org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\norg.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.base [6]: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl)\r\n\tat org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)\r\n\tat org.apache.felix.framework.Felix.startBundle(Felix.java:1868)\r\n\tat org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)\r\n\tat org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\norg.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.swissbox.core [7]: Unable to resolve 7.0: missing requirement [7.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.lang)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl)]\r\n\tat org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)\r\n\tat org.apache.felix.framework.Felix.startBundle(Felix.java:1868)\r\n\tat org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)\r\n\tat org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\norg.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.swissbox.extender [8]: Unable to resolve 8.0: missing requirement [8.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.lang)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl)]\r\n\tat org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)\r\n\tat org.apache.felix.framework.Felix.startBundle(Felix.java:1868)\r\n\tat org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)\r\n\tat org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\norg.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.swissbox.framework [9]: Unable to resolve 9.0: missing requirement [9.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.swissbox.tracker)(version>=1.7.0)(!(version>=2.0.0))) [caused by: Unable to resolve 11.0: missing requirement [11.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.lang)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl)]]\r\n\tat org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)\r\n\tat org.apache.felix.framework.Felix.startBundle(Felix.java:1868)\r\n\tat org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)\r\n\tat org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\norg.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.swissbox.tracker [11]: Unable to resolve 11.0: missing requirement [11.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.lang)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl)]\r\n\tat org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)\r\n\tat org.apache.felix.framework.Felix.startBundle(Felix.java:1868)\r\n\tat org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)\r\n\tat org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\norg.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.exam.invoker.junit [15]: Unable to resolve 15.0: missing requirement [15.0] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 5.0: missing requirement [5.0] osgi.wiring.package; (osgi.wiring.package=javax.xml.parsers)]\r\n\tat org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)\r\n\tat org.apache.felix.framework.Felix.startBundle(Felix.java:1868)\r\n\tat org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)\r\n\tat org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nERROR: Bundle org.ops4j.pax.logging.pax-logging-api [5] Error starting link:classpath:META-INF/links/org.ops4j.pax.logging.api.link (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.logging.pax-logging-api [5]: Unable to resolve 5.0: missing requirement [5.0] osgi.wiring.package; (osgi.wiring.package=javax.xml.parsers))\r\nERROR: Bundle org.ops4j.base [6] Error starting link:classpath:META-INF/links/org.ops4j.base.link (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.base [6]: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl))\r\nERROR: Bundle org.ops4j.pax.swissbox.core [7] Error starting link:classpath:META-INF/links/org.ops4j.pax.swissbox.core.link (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.swissbox.core [7]: Unable to resolve 7.0: missing requirement [7.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.lang)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl)])\r\nERROR: Bundle org.ops4j.pax.swissbox.extender [8] Error starting link:classpath:META-INF/links/org.ops4j.pax.swissbox.extender.link (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.swissbox.extender [8]: Unable to resolve 8.0: missing requirement [8.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.lang)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl)])\r\nERROR: Bundle org.ops4j.pax.swissbox.framework [9] Error starting link:classpath:META-INF/links/org.ops4j.pax.swissbox.framework.link (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.swissbox.framework [9]: Unable to resolve 9.0: missing requirement [9.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.swissbox.tracker)(version>=1.7.0)(!(version>=2.0.0))) [caused by: Unable to resolve 11.0: missing requirement [11.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.lang)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl)]])\r\nERROR: Bundle org.ops4j.pax.swissbox.tracker [11] Error starting link:classpath:META-INF/links/org.ops4j.pax.swissbox.tracker.link (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.swissbox.tracker [11]: Unable to resolve 11.0: missing requirement [11.0] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.lang)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] osgi.wiring.package; (osgi.wiring.package=javax.net.ssl)])\r\nERROR: Bundle org.ops4j.pax.exam.invoker.junit [15] Error starting link:classpath:META-INF/links/org.ops4j.pax.exam.invoker.junit.link (org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.exam.invoker.junit [15]: Unable to resolve 15.0: missing requirement [15.0] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 5.0: missing requirement [5.0] osgi.wiring.package; (osgi.wiring.package=javax.xml.parsers)])\r\n22:28:53.952 [main] ERROR o.o.p.e.n.i.NativeTestContainer - Bundle [org.ops4j.pax.exam [1]] is not resolved\r\n22:28:53.952 [main] ERROR o.o.p.e.n.i.NativeTestContainer - Bundle [org.ops4j.pax.exam.inject [2]] is not resolved\r\n22:28:53.952 [main] ERROR o.o.p.e.n.i.NativeTestContainer - Bundle [org.ops4j.pax.exam.extender.service [3]] is not resolved\r\n22:28:53.952 [main] ERROR o.o.p.e.n.i.NativeTestContainer - Bundle [org.ops4j.pax.logging.pax-logging-api [5]] is not resolved\r\n22:28:53.952 [main] ERROR o.o.p.e.n.i.NativeTestContainer - Bundle [org.ops4j.base [6]] is not resolved\r\n22:28:53.953 [main] ERROR o.o.p.e.n.i.NativeTestContainer - Bundle [org.ops4j.pax.swissbox.core [7]] is not resolved\r\n22:28:53.953 [main] ERROR o.o.p.e.n.i.NativeTestContainer - Bundle [org.ops4j.pax.swissbox.extender [8]] is not resolved\r\n22:28:53.953 [main] ERROR o.o.p.e.n.i.NativeTestContainer - Bundle [org.ops4j.pax.swissbox.framework [9]] is not resolved\r\n22:28:53.953 [main] ERROR o.o.p.e.n.i.NativeTestContainer - Bundle [org.ops4j.pax.swissbox.tracker [11]] is not resolved\r\n22:28:53.953 [main] ERROR o.o.p.e.n.i.NativeTestContainer - Bundle [org.ops4j.pax.exam.invoker.junit [15]] is not resolved`\r\n"}}