[
https://issues.apache.org/jira/browse/SLING-9327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17073618#comment-17073618
]
Bertrand Delacretaz edited comment on SLING-9327 at 4/2/20, 11:05 AM:
----------------------------------------------------------------------
In PR#1 Robert suggest removing the dependency to
{{javax/xml/bind/DatatypeConverter}}, it's a good idea indeed!
I haven't been able to confirm that on my box but I strongly suspect it's the
base64 encoding that uses that class.
I have switched to commons-codec for base64 encoding, [~tyge] could you try
again with the current master branch of
https://github.com/apache/sling-org-apache-sling-junit-teleporter ?
I have also removed the {{osgi.core}} dependency that you mentioned in the PR
and which was used for just one constant.
was (Author: bdelacretaz):
In PR#1 Robert suggest removing the dependency to
{{javax/xml/bind/DatatypeConverter}}, it's a good idea indeed!
I haven't been able to confirm that on my box but I strongly suspect it's the
base64 encoding that uses that class.
I have switched to commons-codec for that, [~tyge] could you try again with the
current master branch of
https://github.com/apache/sling-org-apache-sling-junit-teleporter ?
I have also removed the {{osgi.core}} dependency that you mentioned in the PR
and which was used for just one constant.
> Teleporter not working with jdk11 due to missing xml bind classes
> -----------------------------------------------------------------
>
> Key: SLING-9327
> URL: https://issues.apache.org/jira/browse/SLING-9327
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: JUnit Tests Teleporter 1.0.20
> Reporter: Thierry Ygé
> Priority: Blocker
> Fix For: JUnit Tests Teleporter 1.0.22
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Currently when using teleporter on jdk11 based environment, the teleporter is
> failing due to missing class.
> {quote}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)
> {quote}
> This is due to jdk not containing this package anymore since jdk 9.
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)