Purpose

This page explains how to solve the below error message :   

Cannot find CAST Script file for the module named 'xxxx'
The preprocessing of the CAST Script file
'<CASTSCRIPT PATH>\<Name CastScript File>.castscript' has failed.
Verify that use statements reference a correct module name.

This error message occurs when the analyzer is not able to find a castscript file that has been defined in the application.


Observed in
Release
Yes/No
1.3.x(tick)
1.2.x(tick)
1.1.x(tick)
1.0.x(tick)


Observed on RDBMS
RDBMS
Yes/No
CSS4(tick)
CSS3(tick)
CSS2(tick) 

Step by Step scenario

  1. Package and deliver the J2EE application.
  2. Set as current version.
  3. Run the analysis.
  4. Open the Analysis Log file and check for the error.

Action Plan

To troubleshoot this issue, you need the following Relevant input  

  1. Check if the castscript file exists.
    1. Copy the path defined in the log file and paste it in the explorer and check if the corresponding castscript file exists.
      1. If the file does not exist this may be due to the fact that the file was added as part of a custom environment profile and a custom castscript file is referenced. This file must be available in the machine where the analysis has been performed.
      2. If the file exists then you need to do the following:
        1. Replace the existing x query file present in <CAST installation folder>\EnvProf\J2EE\Spring framework\cast-spring-config-3-x.xq. with cast-spring-config-3-x.xq file and run the analysis.
          This issue has been fixed in 8.2.7
    2. If the above does not solve issue proceed to next step
  2.  Check if Custom CAST Script Library Directory path is set
    To set the CAST Script Library, in the Left panel, go to Technologies tab, open the J2EE technology, select the Platform Setting tab. CAST Script Library Directory should have a value is correctly set as shown below.



Figure 1


Relevant input

  1. Sherlock (CAST Support Tool (CST) - alias Sherlock) with options : Export Configuration Files, Export Logs, Export Database Backup (Management Base only)
  2. Source Code : Required to reproduce the problem on our side to investigate further.
  3. Explanation about the problem and supporting screenshots

  

Notes/comments


Related Pages