CMS Snapshot Analysis - Run Analyzer - Warnings - JEE with extension - JEE Analyzer - Failed to analyze configuration file

Problem

This page describes the solution to the following warnings that you might encounter,when analyzing java source with hibernate framework.

  1. Failed to analyze configuration file ‘C:\CASTMS\LTSA\LTSA\ccd746b326c643d19fa431c8487b3196/Scr14750\JavaTemp\Test.hbm-7-8.xml’\n Queries files ‘C:\Program Files\CAST\7.3\EnvProf\J2EE\Hibernate*cast-hibernate-config-3-2.xml*’ not found.
  2. Failed to analyze configuration file ‘C:\CASTMS\LTSA\LTSA\ccd746b326c643d19fa431c8487b3196/Scr14750\JavaTemp\Test1.hbm-9-10.xml’\n Queries files ‘C:\Program Files\CAST\7.3\EnvProf\J2EE\Hibernate*cast-hibernate-config-3-2.xml*’ not found.�

Observed in CAST Extension

ReleaseYes/No
JEE 1.1.x(coche)
JEE 1.0.x(coche)

Observed on RDBMS

RDBMSYes/No
Oracle Server
Microsoft SQL Server
CSS3(coche)
CSS2

Step by Step Scenario

  1. Package the Java source code with hibernate files.
  2. Deliver and accept the delivery.
  3. Run the analysis, check in the analysis log.

Impact on Analysis Results and Dashboard

Impact of this issue is that we will have unexpected result in the dashboard for hibernate objects.

Action Plan

According to the Warnings in the log file, the environment profiles are not installed on your machine.
You have to install them. To do it, follow the below steps :

  1. Install the environment profiles on your machine
    1. Go to your CAST Installation folder
    2. Go to the EnvProf folder (<CAST_MAJOR_VERSION>\EnvProf)
    3. Execute the batch : register.bat. This batch will reinstall on the common file folder the missing Environment profile.
  2. If it does not resolve the issue, you have to check in the <CAST_MAJOR_VERSION>\EnvProf\J2EE folder that the Hibernate*cast-hibernate-config-3-2.xml*’ file is not missing.
  3. If it is missing, then, your CAST AIP Installation must be re-executed.

Impact of the Solution

No Impact on the analysis and the dashboard.

Notes/comments

Ticket # 6030