Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to update existing war files in Websphere application server?

 Dear Team,


Can anyone tell me how to update existing war files in Websphere Application server  8.5.5.10.

Already war file is deployed in server. We changed the class files inside the war. After changed, How to update the existing war in server.

Kindly assist us.

0 votes


Accepted answer

Permanent link
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.
Preetha T selected this answer as the correct answer

0 votes

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.

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

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,505

Question asked: Feb 25 '19, 4:38 a.m.

Question was seen: 5,068 times

Last updated: Feb 26 '19, 7:11 a.m.

Related questions
Confirmation Cancel Confirm