Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3813

Pax-Exam tests fail when executed under Java 8

    XMLWordPrintableJSON

Details

    Description

      The version of pax-exam in use probably doesn't use a version of the Felix framework with Java 8 support. An example of the errors which pop up is

      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] package; (&(package=org.ops4j.io)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] package; (package=javax.net.ssl)])
      org.osgi.framework.BundleException: Unresolved constraint in bundle org.ops4j.pax.exam [1]: Unable to resolve 1.0: missing requirement [1.0] package; (&(package=org.ops4j.io)(version>=1.4.0)(!(version>=2.0.0))) [caused by: Unable to resolve 6.0: missing requirement [6.0] package; (package=javax.net.ssl)]
      	at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:1797)
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
      	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
      	at java.lang.Thread.run(Thread.java:745)

      Attachments

        Issue Links

          Activity

            People

              rombert Robert Munteanu
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: