An administrator reported that backups are not working on the vSphere replication appliance using the vr-impex-tool JAR file. The following error was observed:
ERROR_LOG_PREFIX_/opt/vmware/vr-impex-tool/impex.properties (No such file or directory)
Unable to initiate using properties file: /opt/vmware/vr-impex-tool/impex.properties
vSphere Replication 9.x
In vSphere Replication version 9.0 and above, additional Java module access options are required when invoking the vr-impex-tool JAR file. These options enable proper access to Java internals that are restricted by default in newer JVM versions.
Use the following command to include the required Java options:
java -Xmx1024m -Xms512m \
--add-opens=java.base/java.lang=ALL-UNNAMED \
--add-opens=java.base/java.io=ALL-UNNAMED \
--add-opens=java.base/java.util=ALL-UNNAMED \
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED \
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED \
-jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --format --exportProperties=/opt/vmware/vr-impex-tool/impex.properties --exportPath=/opt/vmware/vr-impex-tool/exports