We are developing a Jenkins
plugin that creates Windows agents on which builds can be performed. We are using
winrm4j as a library to run Powershell commands, https://github.com/cloudsoft/winrm4j. And openjdk 22.214.171.124-2.
However, we can't connect
to Jenkins from a remote Windows machine due to following error Provider
com.sun.xml.internal.ws.spi.ProviderImpl not found.
The connection test is
working with Junit but once with Jenkins it won't work.
Chris created a detailed
explanation of the issue, here it is https://stackoverflow.com/questions/64374224/jenkins-connection-failure-when-trying-to-connect-via-java-library.