DevPortal

How do I Validate Archives Using the Server Shell?


To validate an archive from the Server Shell, type:

java com.pramati.j2ee.deploy.validator.earvalidator.EARValidator
<name and location of the archive>
Note: Before validating an archive from the command prompt, ensure that the classpath has been set. To set the classpath, run setup.sh on Unix or setup.bat on Windows located at <install_dir>/server/bin.

The following options can be specified with this command:

Table 1: Commands for Validating an Archive

OptionDescription
-aGenerates and displays a report of all the severity levels after validation is complete.
-wGenerates and displays a report of messages with Warning and Failed severity levels.
-fGenerates and displays a report of messages with Failed severity level. This is the default option.
-vGenerates the results of the validation in the verbose mode.
-oSaves the results of the validation to a text file.

For example, at the command prompt, type:

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

Click here to know how to deploy applications using Server Shell.


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