<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>ffonz Tracker</title>
    <link>https://communities.vmware.com/wbsdv95928/tracker</link>
    <description>ffonz Tracker</description>
    <pubDate>Sat, 18 Nov 2023 03:14:00 GMT</pubDate>
    <dc:date>2023-11-18T03:14:00Z</dc:date>
    <item>
      <title>Revert snapshot on Azure DevOps with Java 11</title>
      <link>https://communities.vmware.com/t5/vSphere-Management-SDK/Revert-snapshot-on-Azure-DevOps-with-Java-11/m-p/2971411#M14785</link>
      <description>&lt;P&gt;I have followed this article to set up Azure DevOps to revert a snapshot:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/devops/pipelines/targets/vmware?view=azure-devops" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/devops/pipelines/targets/vmware?view=azure-devops&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I managed to get it working with SDK 7.0 U3f and adding Java 8 (jdk1.8.0_221) to the path-variable.&lt;BR /&gt;&lt;BR /&gt;But because of Visual Studio 2022 installing Microsoft Build of OpenJDK with Hotspot 11, I have to get it working with this version of Java. According to the release notes, SDK 7.0 U3f should support Java 11.&lt;BR /&gt;&lt;BR /&gt;Azure DevOps generates this command:&lt;BR /&gt;&lt;BR /&gt;C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin\java.exe -classpath vmOpsTool-1.0.jar;C:\vSphereSDK\SDK\vsphere-ws\java\JAXWS\lib\vim25.jar VmOpsTool -snapshotOps restore -snapshotName DeploymentReadySnapshot -timeout 60 -vCenterUrl &lt;A href="https://XXXXXXXXXXXXXX/sdk/vimService" target="_blank"&gt;https://XXXXXXXXXXXXXX/sdk/vimService&lt;/A&gt; -vCenterUserName *** -vCenterPassword *** -vmList VM-DPL-001 -targetdc BuildManagement -skipca true&lt;BR /&gt;&lt;BR /&gt;And this is the output:&lt;BR /&gt;&lt;BR /&gt;2023-06-02T10:50:33.3249971Z Parsing input parameters...&lt;BR /&gt;2023-06-02T10:50:33.3342795Z Checking for active session...&lt;BR /&gt;2023-06-02T10:50:33.3345005Z No active session found.. establishing new session.&lt;BR /&gt;2023-06-02T10:50:34.3238705Z java.lang.NoClassDefFoundError: jakarta/xml/ws/Service&lt;BR /&gt;&lt;BR /&gt;How can I get the SDK working with Java 11?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 12:12:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Management-SDK/Revert-snapshot-on-Azure-DevOps-with-Java-11/m-p/2971411#M14785</guid>
      <dc:creator>ffonz</dc:creator>
      <dc:date>2023-06-02T12:12:09Z</dc:date>
    </item>
  </channel>
</rss>

