Web Builder Error "GenerateSource cannot be found"

  • 7021328
  • 17-Jan-2013
  • 11-Mar-2018

Environment

Verastream Host Integrator version 7.1 or higher

Situation

In Verastream Host Integrator (VHI) Web Builder, when attempting to generate a web application project, the build may fail, with the end of the build log indicating GenerateSource or GenerateSolution cannot be found. The specific "Reason" in the build log varies by project type, but is similar to one of the following:

HTML 5 Web Application

Reason: C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:19: The following error occurred while executing this line:
C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:22: The following error occurred while executing this line:
C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:59: The following error occurred while executing this line:
C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:77: taskdef class com.wrq.vhi.wb.projects.MobileUX.GenerateSource cannot be found

Java Web Application

Reason: C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:19: The following error occurred while executing this line:
C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:22: The following error occurred while executing this line:
C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:59: The following error occurred while executing this line:
C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:76: taskdef class com.wrq.vhi.wb.projects.JavaHybrid.GenerateSource cannot be found

.NET Web Application

Reason: C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:21: The following error occurred while executing this line:
C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:24: The following error occurred while executing this line:
C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:49: The following error occurred while executing this line:
C:\Users\<user>\Documents\Attachmate\Verastream\HostIntegrator\projects\<project>\build.xml:63: taskdef class com.wrq.vhi.wb.projects.Net2Hybrid.GenerateSolution cannot be found

This error is not affected by uninstalling and re-installing the product.

Resolution

To resolve this issue, complete the following steps:

  1. Close Web Builder.
  2. At the Command Prompt, enter:
echo %VHI_ROOT%

The command output is the Verastream Host Integrator directory partially using 8.3 file name convention. For example:

C:\PROGRA~1\ATTACH~1\VERAST~1\HostIntegrator
  1. In a text editor, open the core.properties file located in the following folder:
C:\Users\<user>\AppData\Local\Attachmate\Verastream\HostIntegrator\webbuilder\defaults\com\wrq\vhi\wb\properties\CoreProperties

Note: When navigating in Windows Explorer or File Open dialog boxes, the AppData folder is hidden by default. Also, open the appropriate equivalent directory if your %LOCALAPPDATA% environment variable is not set to C:\Users\<user>\AppData\Local.

  1. In the core.properties file, modify the vhiroot= line to use the value from step 2 above, with additional literal escape backslash characters before the colon and directory level separator backslashes. For example:
vhiroot=C\:\\PROGRA~1\\ATTACH~1\\VERAST~1\\HostIntegrator

Save your changes.

  1. Restart Web Builder.

Cause

This problem occurs if a previous installation of Verastream Host Integrator was in a different folder location than the current installation.

For example, you may currently have 64-bit version 7.5 installed to C:\Program Files\Attachmate\Verastream but previously had 32-bit version 7.1.x installed to C:\Program Files (x86)\Attachmate\Verastream.

Additional Information

Legacy KB ID

This article was originally published as Attachmate Technical Note 10141.