DevPortal

How do I Validate Archives?


Table of Contents


How do I Validate Archives?

Validator is a tool that is shipped along with Pramati Server. You can use this tool to validate your archive based on certain pre-defined conditions. Severity levels are assigned against each validation condition. You can take corrective action depending on the message that appears against each validation condition. The levels are:

You can validate an archive using the following methods:

Read Validation Conditions for a list of all conditions based on which an archive is validated.

How do I Validate Archives Using Deploy Tool?

The Deploy Tool automatically validates an archive when you open it for deploying. To validate an archive using the Deploy Tool:

  1. Start the Deploy Tool.
  2. Select Archive > Open to open the required archive.

The Deploy Tool automatically validates the archive before opening it. After completion, the validation status appears on the screen. You can also open an archive and select Archive > Validate. The status and progress of the validation appears on the screen.

How do I Validate Archives Offline Using Command Shell Interface?

You can validate an archive independent of the Deploy Tool from the command line. At the prompt, enter:

java com.pramati.tools.validator.earvalidator.EARValidator <name and location of the archive>
The archive is validated. Validation can be enabled or disabled when an archive is opened again. The options that you can specify along with this command are:

Table 1: Command shell options for validation

OptionsDescription
-aAfter the validation is complete, a report of all the severity levels is generated and displayed.
-wAfter the validation is complete, a report containing only messages with warning and failed severity levels is generated and displayed.
-fAfter the validation is complete, a report containing only messages with a failed severity level is generated and displayed. This is the default option that is assumed.
-vUse this option to generate the results in the verbose mode.
-oYou can save the results of the validation into a text file.

For example: java com.pramati.tools.validator.earvalidator.EARValidator -a -oreport.txt orderApp.ear

How do I Validate Archives From Remote Shell Prompt?

For information about validating applications from the shell prompt, read Deploying Applications Using Server Shell.


© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal