Once a file within a WAR is modified, the WAR itself needs to be updated with the newly modified file. Following is the procedure to update a WAR.
Go to the directory where the WAR files are kept.
# cd AccessManager-base/ SUNWam/war |
Run the jar command.
jar -uvf WARfilename.war path_to_modified_file |
The -uvf option replaces the old file with the newly modified file. For example:
# jar -uvf console.war newfile/index.html |
This command replaces the index.html file in console.war with the index.html file located in AccessManager-base/SUNWam/newfile.
Delete the modified file.
# rm newfile/index.html |
Delete the modified file.