How to remove the deployed applications from RAD without starting/restarting the server ?

How to remove the deployed applications from RAD without starting/restarting the server ?

Sometimes our websphere application server will not start/restart due to wrong configurations, permissions, already installed applications etc.,

But we may need to remove or uninstall the applications from the websphere, in that case we can remove it using the serverindex.xml file entries,

 <deployedApplications>WebSphereWSDM.ear/deployments/WebSphereWSDM</deployedApplications>
<deployedApplications>isclite.ear/deployments/isclite</deployedApplications>
<deployedApplications>DefaultApplication.ear/deployments/DefaultApplication</deployedApplications>
<deployedApplications>ivtApp.ear/deployments/ivtApp</deployedApplications>
<deployedApplications>query.ear/deployments/query</deployedApplications>
<deployedApplications>ibmasyncrsp.ear/deployments/ibmasyncrsp</deployedApplications>

serverindex.xml file location:

D:\Program Files\IBM\SDP\runtimes\base_v7\profiles\Guru\config\cells\JavadomainNode01Cell\nodes\mynode

sample entries you can find in serverindex.xml file, delete the unwanted deployedapplications list from this file.

then you can delete the .ear folders from the below folders if you can find anything,
D:\Program Files\IBM\SDP\runtimes\base_v7\profiles\AppSrv02\config\cells\JavadomainNode01Cell

Also remove the heapdump files from the below folders,
D:\Program Files\IBM\SDP\runtimes\base_v7\profiles\AppSrv02

check also inside the bin folder. Ensure you are deleting only the heap dump files, because bin will have many important files.

Note:

1. Do all the above things only when server is stopped. You can use the below commands to stop the server,

stopServer.bat server1

2. Take the backup of serverindex.xml file before alterting it.

3. Remove the unwanted EAR’s from the serverindex.xml file very carefully because some default EAR’s exist in the serverindex.xml file needed for websphere server for testing and admin consoles. These are some of the default EAR’s in the websphere servers – serverindex.xml file:

ivtapp EAR:
IVT is install verification test – it validates that the install was
> successful. You can remove it if you choose.

isclite EAR:
for admin console. Do not remove it, because it may collapse some of the admin console properties. When you open admin console you can able to see isclite in the console system outs. You can see the isclite sysouts in the consoles also.

4. Path may vary based on the installations.

Websphere related commands:

command to start the websphere server:

D:\Program Files\IBM\SDP\runtimes\base_v7\profiles\AppSrv02\bin>startServer.bat server1

ADMU0116I: Tool information is being logged in file D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\AppSrv02\logs\server1\startServer.log
ADMU0128I: Starting tool with the AppSrv02 profile
ADMU3100I: Reading configuration for server: server1
ADMU3200I: Server launched. Waiting for initialization status.
ADMU3000I: Server server1 open for e-business; process id is 11764

command to know the websphere server status:

D:\Program Files\IBM\SDP\runtimes\base_v7\profiles\AppSrv02\bin>serverStatus.bat server1

 

ADMU0116I: Tool information is being logged in file D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\AppSrv02\logs\server1\serverStatus.log
ADMU0128I: Starting tool with the AppSrv02 profile
ADMU0500I: Retrieving server status for server1
ADMU0508I: The Application Server “server1” is STARTED

command to stop the websphere server:

D:\Program Files\IBM\SDP\runtimes\base_v7\profiles\AppSrv02\bin>stopServer.bat server1

ADMU0116I: Tool information is being logged in file D:\Program
Files\IBM\SDP\runtimes\base_v7\profiles\AppSrv02\logs\server1\stopServer.log
ADMU0128I: Starting tool with the AppSrv02 profile
ADMU3100I: Reading configuration for server: server1
ADMU3201I: Server stop request issued. Waiting for stop status.
ADMU4000I: Server server1 stop completed.

Details shared about the websphere server in the above post is my understanding and learnings. Please correct if any of my understanding is wrong or add the more details in the below command section.

Leave a Reply