-
Type:
Bug
-
Status: Open
-
Priority:
Blocker
-
Resolution: Unresolved
-
Affects Version/s: JUnit Tests Teleporter 1.0.10
-
Fix Version/s: JUnit Tests Teleporter 1.0.24
-
Component/s: Testing
-
Labels:None
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.
- relates to
-
SLING-7107 Some JSP tests fail under Java 9 - The method getProperty(String) is undefined for the type AdapterType
-
- Resolved
-
- links to