This topic provides instructions on how to install Java CAPS 6 patches, including information that helps you verify that the installation completed successfully. Before installing patches you must obtain them from Java CAPS Support at http://goldstar.stc.com. For information about patches, script variables, and uninstallation procedures, see Java CAPS 6 Patch Overview, Java CAPS 6 Patch Management Tools, and Uninstalling Java CAPS 6 Patches.
As in previous releases, Java CAPS user applications will have to be rebuilt and redeployed if you want to use the patched product component. This situation can arise after a design-time NetBeans IDE, design-time Command-line Codegen, and/or a Repository patch has been installed.
If you have installed Java CAPS across multiple servers, such as NetBeans IDE on server 1 and Sun GlassFish Enterprise Server on server 2, you need to install the patch(es) on more than one machine. The tool informs you of a successful patch installation at the conclusion of the process.
If a patch installation is interrupted, use the uninstall script to remove the patch before applying the patch again.
This procedure installs a runtime patch on the Sun GlassFish Enterprise Server, with the ZIP file name using the format of nnnnnnn-nn–RT.zip.
The -domain option is used to patch a particular domain. If you want to patch only the application server installation directory you must run the patch without the -domain option.
Change directory to JavaCAPS6–INSTALL-DIR/appserver/domains/domain-name/bin.
JavaCAPS6–INSTALL-DIR is the directory where you installed Java CAPS.
From the command line, run ./stopserver.sh or (stopserver.bat) to stop the application server.
Change directory to JavaCAPS6–INSTALL-DIR/caps-patch/util/bin.
At the command line, enter ./caps-patch-install -verbose -domain domain-name -patch any-directory/nnnnnnn-nn-RT.zip.
any-directory is the path to the patch.
Change directory to JavaCAPS6–INSTALL-DIR/appserver/domains/domain-name/bin.
From the command line, run ./startserver.sh (or startserver.bat) to start the application server.
This procedure installs a patch on the Enterprise Manager Server, with the ZIP file name using the format of nnnnnnn-nn–EM.zip.
Change directory to JavaCAPS6–INSTALL-DIR/emanager.
JavaCAPS6–INSTALL-DIR is the directory where you installed Java CAPS.
From the command line, run ./stopserver.sh (or stopserver.bat) to stop the Enterprise Manager server.
Change directory to JavaCAPS6–INSTALL-DIR/caps-patch/util/bin.
At the command line, enter ./caps-patch-install -patch any-directory/nnnnnnn-nn-EM.zip.
any-directory is the path to the patch.
Change directory to JavaCAPS6–INSTALL-DIR/emanager.
From the command line, run ./startserver.sh (or startserver.bat) to start the Enterprise Manager server.
This procedure installs a patch on NetBeans IDE, with the ZIP file name using the format of nnnnnnn-nn–DT-NB.zip.
Close NetBeans IDE.
Change directory to JavaCAPS6–INSTALL-DIR/caps-patch/util/bin.
JavaCAPS6–INSTALL-DIR is the directory where you installed Java CAPS.
At the command line, enter ./caps-patch-install -verbose -patch any-directory/nnnnnnn-nn-DT-NB.zip.
any-directory is the path to the patch.
This procedure installs a command-line Codegen patch with the ZIP file name using the format of nnnnnnn-nn–DT-CLI.zip.
Change directory to JavaCAPS6–INSTALL-DIR/caps-patch/util/bin.
JavaCAPS6–INSTALL-DIR is the directory where you installed Java CAPS.
At the command line, enter ./caps-patch-install -verbose -clirepdir cmdlineCodegenRepositoryDir -patch any-directory/nnnnnnn-nn-DT-CLI.zip.
any-directory is the path to the patch.
This procedure installs a Repository patch with the ZIP file name using the format of nnnnnnn-nn–REP.zip.
This patch cannot be uninstalled.
Change directory to JavaCAPS6–INSTALL-DIR/repository/repository.
JavaCAPS6–INSTALL-DIR is the directory where you installed Java CAPS.
From the command line, run ./stopserver.sh (or stopserver.bat) to stop the Repository.
Change directory to JavaCAPS6–INSTALL-DIR/caps-patch/util/bin.
At the command line, enter ./caps-patch-install -verbose -patch any-directory\nnnnnnn-nn-REP.zip.
any-directory is the path to the patch.
Change directory to JavaCAPS6–INSTALL-DIR/repository/repository.
From the command line, run ./startserver.sh (or startserver.bat) to start the Repository.
Start NetBeans IDE, or if it is already running, refresh it.