![]() |
|
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.
The Deploy Tool automatically validates an archive when you open it for deploying. To validate an archive using the Deploy Tool:
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.
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
| Options | Description |
|---|---|
| -a | After the validation is complete, a report of all the severity levels is generated and displayed. |
| -w | After the validation is complete, a report containing only messages with warning and failed severity levels is generated and displayed. |
| -f | After 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. |
| -v | Use this option to generate the results in the verbose mode. |
| -o | You 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
For information about validating applications from the shell prompt, read Deploying Applications Using Server Shell.
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |