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

Teleporter not working with jdk11 due to missing xml bind classes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: JUnit Tests Teleporter 1.0.10
    • Component/s: Testing
    • Labels:
      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 Bertrand Delacretaz

      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

              • Assignee:
                Unassigned
                Reporter:
                petitbear68 Thierry Ygé
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

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