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

Teleporter not working with jdk11 due to missing xml bind classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • JUnit Tests Teleporter 1.0.10
    • Testing
    • None

    Description

      Currently when using teleporter on jdk11 based environment, the teleporter is failing due to missing class.

      java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter at org.apache.sling.testing.teleporter.client.TeleporterHttpClient.setConnectionCredentials(TeleporterHttpClient.java:63) at org.apache.sling.testing.teleporter.client.TeleporterHttpClient.getHttpGetStatus(TeleporterHttpClient.java:136) at org.apache.sling.testing.teleporter.client.TeleporterHttpClient.waitForStatus(TeleporterHttpClient.java:75) at org.apache.sling.testing.teleporter.client.TeleporterHttpClient.installBundle(TeleporterHttpClient.java:94) at org.apache.sling.testing.teleporter.client.ClientSideTeleporter.installTestBundle(ClientSideTeleporter.java:173) at org.apache.sling.testing.teleporter.client.ClientSideTeleporter.access$000(ClientSideTeleporter.java:45) at org.apache.sling.testing.teleporter.client.ClientSideTeleporter$2.evaluate(ClientSideTeleporter.java:207) at com.adobe.granite.testing.serverside.rules.GraniteSSTRule$1.evaluate(GraniteSSTRule.java:104)

      This is due to jdk not containing this package anymore since jdk 9.

      Teleporter used is 1.0.10 and with 1.0.20 I couldn't use it as it fails with missing osgi core dependency, unless I would then add it manually in the test module pom.

      Note from bdelacretaz

      As per https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist it looks like using jakarta.xml.bind as an additional dependency might fix this.

      Attachments

        Issue Links

          Activity

            People

              rombert Robert Munteanu
              petitbear68 Thierry Ygé
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m