<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Delivery Manager Tool - Package - Validation - Alerts - J2EE on Documentation - V2</title><link>https://doc.castsoftware.com/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/delivery-manager-tool-component-dmt/delivery-manager-tool-package/delivery-manager-tool-package-validation/delivery-manager-tool-package-validation-alerts/delivery-manager-tool-package-validation-alerts-j2ee/</link><description>Recent content in Delivery Manager Tool - Package - Validation - Alerts - J2EE on Documentation - V2</description><generator>Hugo</generator><language>en</language><atom:link href="https://doc.castsoftware.com/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/delivery-manager-tool-component-dmt/delivery-manager-tool-package/delivery-manager-tool-package-validation/delivery-manager-tool-package-validation-alerts/delivery-manager-tool-package-validation-alerts-j2ee/index.xml" rel="self" type="application/rss+xml"/><item><title>Delivery Manager Tool - Package - Validation - Alerts - J2EE - Eclipse - Undefined variable</title><link>https://doc.castsoftware.com/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/delivery-manager-tool-component-dmt/delivery-manager-tool-package/delivery-manager-tool-package-validation/delivery-manager-tool-package-validation-alerts/delivery-manager-tool-package-validation-alerts-j2ee/delivery-manager-tool-package-validation-alerts-j2ee-eclipse-undefined-variable/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://doc.castsoftware.com/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/delivery-manager-tool-component-dmt/delivery-manager-tool-package/delivery-manager-tool-package-validation/delivery-manager-tool-package-validation-alerts/delivery-manager-tool-package-validation-alerts-j2ee/delivery-manager-tool-package-validation-alerts-j2ee-eclipse-undefined-variable/</guid><description>&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This page explains how to solve the Undefined variable for J2EE Eclipse applications.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536876/566536877.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Observed in CAST AIP&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Release&lt;/th&gt;
 &lt;th&gt;Yes/No&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;8.3.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;8.2.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;8.1.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;8.0.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;7.3.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Observed on RDBMS&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;RDBMS&lt;/th&gt;
 &lt;th&gt;Yes/No&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;Oracle Server&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Microsoft SQL Server&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;CSS2&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Action Plan&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In the package content tab, identify the path of the project. In the below example, the path is amisting/.project:&lt;br&gt;
&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536876/566536877.png" alt=""&gt;&lt;/li&gt;
&lt;li&gt;Go to the project path&lt;br&gt;
&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536876/566536879.png" alt=""&gt;&lt;/li&gt;
&lt;li&gt;Open the .classpath file&lt;/li&gt;
&lt;li&gt;Inside the classpath file we can see that the variable that appears as undefined is defined in the classpath entry :&lt;br&gt;
&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536876/566536878.png" alt=""&gt;&lt;/li&gt;
&lt;li&gt;Search in your source where the jar files defined in the classpath entry are located (EXTERNAL_JARS/log_extract.jar as an example from the above screenshot).&lt;/li&gt;
&lt;li&gt;Once found, in the package content remediate the undefined variable alert by giving the path of these jar files. In the current case the path is in R:/Sources/&amp;hellip;/extlibs/src&lt;br&gt;
&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536876/566536875.png" alt=""&gt;&lt;/li&gt;
&lt;li&gt;Package again.&lt;/li&gt;
&lt;li&gt;The undefined variable must not appear in the alerts again.&lt;/li&gt;
&lt;li&gt;If the above steps do not help you, contact &lt;a href="https://help.castsoftware.com/hc/en-us/articles/204189137-How-to-contact-CAST-Technical-Support"&gt;CAST Technical Support&lt;/a&gt; with the &lt;a href="https://doc.castsoftware.com/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/delivery-manager-tool-component-dmt/delivery-manager-tool-package/delivery-manager-tool-package-validation/delivery-manager-tool-package-validation-alerts/delivery-manager-tool-package-validation-alerts-j2ee/"&gt;Relevant Input&lt;/a&gt; in order to reproduce the issue.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Notes/comments&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Delivery Manager Tool - Package - Validation - Alerts - J2EE - Maven - Missing projects</title><link>https://doc.castsoftware.com/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/delivery-manager-tool-component-dmt/delivery-manager-tool-package/delivery-manager-tool-package-validation/delivery-manager-tool-package-validation-alerts/delivery-manager-tool-package-validation-alerts-j2ee/delivery-manager-tool-package-validation-alerts-j2ee-maven-missing-projects/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://doc.castsoftware.com/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/delivery-manager-tool-component-dmt/delivery-manager-tool-package/delivery-manager-tool-package-validation/delivery-manager-tool-package-validation-alerts/delivery-manager-tool-package-validation-alerts-j2ee/delivery-manager-tool-package-validation-alerts-j2ee-maven-missing-projects/</guid><description>&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This page explains how to troubleshoot missing project alerts for J2EE applications.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536886/566536891.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Observed in CAST AIP&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Release&lt;/th&gt;
 &lt;th&gt;Yes/No&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;8.3.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;8.2.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;8.1.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;8.0.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;7.3.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Observed on RDBMS&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;RDBMS&lt;/th&gt;
 &lt;th&gt;Yes/No&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;Oracle Server&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Microsoft SQL Server&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;CSS2&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Action Plan&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In the list of alerts &amp;ldquo;Missing projects&amp;rdquo;, if the Alerts are like &lt;strong&gt;[name1][name2]&lt;/strong&gt; it means that the DMT has found a missing project (maven project or Eclipse project) which is refered by the poject file :&lt;br&gt;
&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536886/566536891.png" alt=""&gt;&lt;br&gt;
In the above example the project named rar/brcore is missing.
&lt;ol&gt;
&lt;li&gt;Open the project file of the file defined in the project path, in this example it is a maven project that is in : COMMON_CHECKOUT/trunk/sales-TKB/TKB-core/pom.xml. Check the reference to the project named rar/brcore.&lt;br&gt;
&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536886/566536888.png" alt=""&gt;&lt;/li&gt;
&lt;li&gt;Once the check is done, check if this project rar/brcore really exists in the packaged source code.&lt;/li&gt;
&lt;li&gt;If it does not exist :
&lt;ol&gt;
&lt;li&gt;Check if the missing project has been packaged in another package of the same version:
&lt;ol&gt;
&lt;li&gt;If yes, you have to solve this alert with a &lt;a href="http://doc.castsoftware.com/display/DOC82/DMT+-+Package+Content+tab+-+Packaging+alerts?string-search=Using%20CAST%20remediation%20items"&gt;manual remediation&lt;/a&gt; by pointing to the missing project and running the packaging.&lt;/li&gt;
&lt;li&gt;If no, then this alert is expected.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;If it exists, to solve this alert you have to &lt;a href="http://doc.castsoftware.com/display/DOC82/DMT+-+Package+Content+tab+-+Packaging+alerts?string-search=Using%20CAST%20remediation%20items"&gt;remediate manually this missing project alert&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;If the missing project alert is like &lt;strong&gt;[${variable}{project name}]&lt;/strong&gt; as shown in the below screenshot, it means that a variable has not been resolved:&lt;br&gt;
&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536886/566536889.png" alt=""&gt;
&lt;ol&gt;
&lt;li&gt;Check if this is an &lt;strong&gt;Undefined variable&lt;/strong&gt; alert.&lt;/li&gt;
&lt;li&gt;If yes, check that the variable which is not resolved is in the list of &lt;strong&gt;undefined variable&lt;/strong&gt; alert.&lt;/li&gt;
&lt;li&gt;If it is, remediate this undefined variable and package the source again.&lt;/li&gt;
&lt;li&gt;If it is not, open the pom.xml file and replace the variable by its true value.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Check if the alerts are like &lt;strong&gt;[name1][name2]:&lt;version&gt;&lt;/strong&gt; as shown in the below screenshot :&lt;br&gt;
&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536886/566536890.png" alt=""&gt;&lt;br&gt;
In the above example, the project name is venibe-provider-cxf and it is refering to an artifact [org.apache.cxf][cxf-rt-transport-http]:3.0.3 which is missing. It is a jar file which is not found.
&lt;ol&gt;
&lt;li&gt;If there is no type of packaging listed in the pom.xml as in the screenshot below, then a jar file is expected for a dependency by default:&lt;br&gt;
&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536886/566536887.png" alt=""&gt;
&lt;ol&gt;
&lt;li&gt;if you have as well a pom type dependency in the pom.xml as in the screenshot below;&lt;br&gt;
&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536886/566536885.png" alt=""&gt;&lt;br&gt;
Then this is an currently unsupported case as the type of dependency of pom type is currently not supported by CAST, though may be supported in a future release.
&lt;ol&gt;
&lt;li&gt;As a manual workaround, gather all the associated jar files in the dependency lines of the pom.xml referenced in the alert, then add them in a file system package, and then finally add these jar files to the analysis unit&amp;rsquo;s class path so that they can be properly found.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Otherwise check if the missing jar exists in the source code packaged.&lt;/li&gt;
&lt;li&gt;If it does not exist, getting this alert is expected
&lt;ol&gt;
&lt;li&gt;You have to create a package : &lt;strong&gt;Automated extraction of required jar files&lt;/strong&gt; which will point to a maven repository where the jar file exists.&lt;/li&gt;
&lt;li&gt;Run a package on the full version.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;If it exists :
&lt;ol&gt;
&lt;li&gt;Check if the version of the jar file is the correct one.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;If the above steps do not help you, contact &lt;a href="https://help.castsoftware.com/hc/en-us/articles/204189137-How-to-contact-CAST-Technical-Support"&gt;CAST Technical Support&lt;/a&gt; with the &lt;a href="#DeliveryManagerToolPackageValidationAlertsJ2EEMavenMissingprojects-RelevantInput"&gt;Relevant Input&lt;/a&gt; in order to reproduce the issue.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="relevant-input"&gt;Relevant Input&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://doc.castsoftware.com/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/delivery-manager-tool-component-dmt/"&gt;Delivery Manager Tool - Relevant Input&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Screenshot showing the alerts&lt;/li&gt;
&lt;li&gt;In case of missing ressources / files / objects, provide a screenshot showing that these items exist.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Notes/comments&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Delivery Manager Tool - Package - Validation - Alerts - J2EE - Maven - Missing source folder</title><link>https://doc.castsoftware.com/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/delivery-manager-tool-component-dmt/delivery-manager-tool-package/delivery-manager-tool-package-validation/delivery-manager-tool-package-validation-alerts/delivery-manager-tool-package-validation-alerts-j2ee/delivery-manager-tool-package-validation-alerts-j2ee-maven-missing-source-folder/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://doc.castsoftware.com/export-v2/tg/technical-guides/technical-guides-by-cast-aip-component/delivery-manager-tool-component-dmt/delivery-manager-tool-package/delivery-manager-tool-package-validation/delivery-manager-tool-package-validation-alerts/delivery-manager-tool-package-validation-alerts-j2ee/delivery-manager-tool-package-validation-alerts-j2ee-maven-missing-source-folder/</guid><description>&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This page troubleshoots alerts related to missing source folder for Maven projects.&lt;/p&gt;
&lt;p&gt;The standard directory layout for a Maven Project is shown below :&lt;/p&gt;
&lt;p&gt;Application source code : src/main/java&lt;br&gt;
Web application sources : src/main/webapp&lt;/p&gt;
&lt;p&gt;In the pom.xml file, the sourceDirectory&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://doc-data.castsoftware.com/TG/attachments/566536894/566536899.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Observed in CAST AIP&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Release&lt;/th&gt;
 &lt;th&gt;Yes/No&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;8.3.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;8.2.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;8.1.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;8.0.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;7.3.x&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Observed on RDBMS&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;RDBMS&lt;/th&gt;
 &lt;th&gt;Yes/No&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;Oracle Server&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Microsoft SQL Server&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;CSS2&lt;/td&gt;
 &lt;td&gt;&amp;#x2705;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Step by Step Scenario&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>