Page tree
Skip to end of metadata
Go to start of metadata

Introduction

When adding a new version to analyze an Application that includes JEE based source code and this source code does not contain a .pom or .project file, AIP Console is currently unable to "discover" this code as JEE (AIP Console relies on the presence of the .pom / .project files). In this situation, the source code delivery will end in failure. In order to resolve this issue, you can manually configure AIP Console to install an extension called JEE File Discoverer whenever a .java file is encountered in your delivered source code. This extension will ensure that the required Analysis Units are created for your source code and that an analysis can proceed without issue.

Steps to configure this are shown below.

Step 1 - Edit the configuration file

A configuration file (code-scanner-config.xml) must be edited to make this change. This file is available on EACH AIP Node, therefore if you have more than one AIP Node, you will need to make this change on all AIP Nodes where you would like to force the installation of the JEE File Discoverer whenever a .java file is encountered in your delivered source code.

To do so, first locate this file:

%PROGRAMDATA%\CAST\AipConsole\AipNode\code-scanner-config.xml

Edit the file with a text editor and locate the following line:

<?xml version="1.0" encoding="UTF-8"?>
<packages>
	<!-- List of discoverers for Standard Plugins: -->
	<package packageType="delivery.SourceFilesPackage" extractorType="dmtdevfolderextractor.SourceFolderExtractor">

Add a new <discoverer> tag within the <package> tag, as follows:

<?xml version="1.0" encoding="UTF-8"?>
<packages>
	<!-- List of discoverers for Standard Plugins: -->
	<package packageType="delivery.SourceFilesPackage" extractorType="dmtdevfolderextractor.SourceFolderExtractor">
		<discoverer extensionId="com.castsoftware.dmtjeefilediscoverer" dmtId="dmtjeefilediscoverer"
			fileExtensions=".java" label="Java files per package folder"/>

Save the file when the changes are complete.

Step 2 - Apply configuration changes

Restart the AIP Console and AIP Nodes to ensure all changes are taken into account:

  • If the AIP Console / AIP Nodes are installed as Windows Services, restart the services
  • If the AIP Console / AIP Nodes are running only using the batch files, close the CMD windows to stop the processes, then restart then using the following file:
%PROGRAMDATA%\CAST\AipConsole\AipConsole\tools\runAIPConsole.bat
%PROGRAMDATA%\CAST\AipConsole\AipNode\tools\runAIPConsole.bat
  • No labels