Unable to export Java 8 layer

book

Article ID: 162296

calendar_today

Updated On:

Products

Workspace Virtualization (formerly SVS)

Issue/Introduction

A problem has been observed when trying to export Java 8 layers. An error message is displayed when exporting the layer, "Error opening xpf source file." After acknowledging the message, the export process either aborts or continues depending on whether the option to export user information was set.
  1. If user information was selected for export, the export process aborts.
  2. If user information was not selected for export, the export process continues, but produces an incomplete XPF file.


Compiling a Java 8 layer using Symantec Virtual Composer will fail to create the package. Symantec Workspace Virtualization Admin Tool
  • Exporting the layer fails


Symantec Virtual Composer
  • Packaging wizard fails to compile the package
  • Clicking the Compile Package button also results in an error message, "Failed to create package"
  • The project log file will indicate error 3 when attempting to open a file on a path that should exist: 
2015-09-01 20:02:59 WARN   [548] Packager,PackagingTool::CXPFUtil::WriteXPFFileItems#2112| Open file error: 3, File: \\?\VOLUME{18E5E0DD-EA58-11E0-ACD4-806E6F6E6963}\FSLRDR\10\[_B_]ALLUSERSPROFILE[_E_]\ORACLE\JAVA\JAVAPATH\JAVA.EXE

ERROR_PATH_NOT_FOUND
3 (0x3)
The system cannot find the path specified.

Cause

The more recent versions of Oracle's Java installer creates symbolic links for the java.exe, javaw.exe, and javaws.exe files. The layer export method cannot process symlinked files and throws an exception.

Resolution

Symantec is aware of this issue and will update this document when a solution becomes available. It is not necessary to log a support case on this issue. Please subscribe to this article to be notified of any updates.
Workaround: Delete the symlinked files and replace them with copies of the files that were being referenced.
  1. Deactivate the Java layer
  2. Navigate to the ALLUSERSPROFILES\Oracle\Java\javapath directory in the RO sublayer
  3. Make note of the files referenced by the symlinks
  4. ​Delete the symlinks
  5. Copy the referenced files from the PROGRAMFILES\Java\<jre_version>\bin\ directory to the javapath directory from step 2
  6. Export the layer (or compile the package if using Composer)

Attachments