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

Crankstart launcher tests fail with Java 1.8

    XMLWordPrintableJSON

Details

    Description

      The contrib/crankstart/launcher build fails with Java 1.8 due to the org.apache.sling.crankstart.test.services bundle not starting as the framework (bundle 0) has an empty Provide-Capability header - so the bundle is missing the (&(osgi.ee=JavaSE)(version=1.5)) requirement.

      Interestingly, if I start a Sling instance manually with the same provisioning model and JVM, that bundle starts and Provide-Capability is correctly populated.

      The startup command for that is

       rm -rf CRANKSTART ; \
      java -jar \
      target/org.apache.sling.crankstart.launcher-1.9.9-SNAPSHOT.jar \
      src/test/resources/crankstart-model.txt src/test/resources/provisioning-model
      

      Attachments

        Activity

          People

            bdelacretaz Bertrand Delacretaz
            bdelacretaz Bertrand Delacretaz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: