How to update existing war files in Websphere application server?
Accepted answer
Hi Preetha,
In the WAS console, expand the Applications -> Application Types menu, and then click WebSphere enterprise applications.
Then select the application you want to update and click Stop. After the application stops, select it again and click Update.
Select the Replace the entire application option and locate (browse) the .war you want to install.
then follow the instructions using the fast path. At the end, save to the master.
Before restarting the application, it is recommended to clear the application cache.
Then select the application you want to update and click Stop. After the application stops, select it again and click Update.
Select the Replace the entire application option and locate (browse) the .war you want to install.
then follow the instructions using the fast path. At the end, save to the master.
Before restarting the application, it is recommended to clear the application cache.
Comments
Dear Leonardo,
Thank you for your information. Can you tell me how to clear the application caches?
Hello Preetha,
To clear the application cache:
1. Start the CLM server.
2. Run repotools-<app> -clean for each application that is installed. Note: This will also display the help output. For instance:
- repotools-ccm -clean
- repotools-jts -clean
- repotools-qm -clean
- repotools-rm -clean
1. To clear the application cache on WebSphere Application Server:
Remove the contents from these directories under the profile root(e.g. <WAS_HOME>/<AppServer>/profiles/<Profile>), except for the noted help directory: temp, wstemp, workspace.
2. Run repotools-<app> -clean for each application that is installed. Note: This will also display the help output. For instance:
- repotools-ccm -clean
- repotools-jts -clean
- repotools-qm -clean
- repotools-rm -clean
1. To clear the application cache on WebSphere Application Server:
Remove the contents from these directories under the profile root(e.g. <WAS_HOME>/<AppServer>/profiles/<Profile>), except for the noted help directory: temp, wstemp, workspace.
Note: Do not remove this directory, which is required for the CLM local help: temp/{jts_node}/{jts_server}/clmhelp_war.
2. To clear the class cache:
For UNIX platforms, run the following script:
<WebSphere_HOME>/bin/clearClassCache.sh
For Windows platforms, run the following script:
<WebSphere_HOME>\bin\clearClassCache.bat