Websphere 手动模拟删除应用操作
Websphere 手动模拟删除应用操作
切记:不要在程序还在运行的时候,直接的remove掉应用程序,不然,会发生意外的错误。
最近,在项目中,不小心手动移除了正在运行的应用,发现server一直会报错,提示是之前移除的应用没法启动.也卸载不了,后来,处理了很久,才找到了如下方法:手动模拟卸载删除应用.
首先我找了一个正常的应用,在控制台,正常执行卸载操作,然后把它卸载删除的应用的日志全部获取下来,发现如下:
cells / CNHQ-12061799Node01Cell / nodes / CNHQ-12061799Node01 / serverindex.xml 已更新
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deltas / GBSEnGineV3EAR / delta-1345174667471 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / GBSEnGineV3EAR.ear 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deployments / GBSEnGineV3EAR / GBSEngineV3_PRD.war / WEB-INF / server-config.wsdd 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deployments / GBSEnGineV3EAR / META-INF / ibm-application-bnd.xmi 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deployments / GBSEnGineV3EAR / META-INF / MANIFEST.MF 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deployments / GBSEnGineV3EAR / META-INF / application.xml 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deployments / GBSEnGineV3EAR / GBSEngineV3_PRD.war / WEB-INF / ibm-web-ext.xmi 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deployments / GBSEnGineV3EAR / GBSEngineV3_PRD.war / WEB-INF / ibm-web-bnd.xmi 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deployments / GBSEnGineV3EAR / GBSEngineV3_PRD.war / WEB-INF / web.xml 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deployments / GBSEnGineV3EAR / GBSEngineV3_PRD.war / META-INF / MANIFEST.MF 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deployments / GBSEnGineV3EAR / GBSEngineV3_PRD.war / WEB-INF / xfire-servlet.xml 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deployments / GBSEnGineV3EAR / META-INF / ibm-application-runtime.props 已删除
cells / CNHQ-12061799Node01Cell / applications / GBSEnGineV3EAR.ear / deployments / GBSEnGineV3EAR / deployment.xml 已删除
cells / CNHQ-12061799Node01Cell / blas / GBSEnGineV3EAR / bver / BASE / bla.xml 已删除
cells / CNHQ-12061799Node01Cell / cus / GBSEnGineV3EAR / cver / BASE / cu-ref.xml 已删除
cells / CNHQ-12061799Node01Cell / cus / GBSEnGineV3EAR / cver / BASE / controlOpDefs.xml 已删除
cells / CNHQ-12061799Node01Cell / cus / GBSEnGineV3EAR / cver / BASE / cu.xml 已删除
根据was的卸载的动作,可以清楚的看到卸载应用时候所做的相关的操作,然后手动的模拟删除之前移除的应用,发现,确实有没有删除干净的残余内容.
具体的手动模拟删除步骤总结如下:
1.首先找到自己的安装wid7的如下路径:
本人的安装路径如下:D:\IBM\WID7_WTE\runtimes\bi_v7\profiles\AppSrv01\config\cells\CNHQ-12061799Node01Cell
2.按照 上面的删除顺序,依次序删除掉应该删除的文件,防止意外,请先保存备份原来的文件,以便于错误时还原。
3.删除完成之后,更新cells / CNHQ-12061799Node01Cell / nodes / CNHQ-12061799Node01 / serverindex.xml , serverindex.xml 一定要先备份.
将其中的与要删除的应用程序相关的行删除掉。
serverindex.xml 结构如下:
<?xml version="1.0" encoding="UTF-8"?>
<serverindex:ServerIndex xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:serverindex="http://www.ibm.com/websphere/appserver/schemas/5.0/serverindex.xmi" xmi:id="ServerIndex_1" hostName="CNHQ-12061799T.sn.suning.ad">
<serverEntries xmi:id="ServerEntry_1183122129640" serverName="server1" serverType="APPLICATION_SERVER">
<deployedApplications>WebSphereWSDM.ear/deployments/WebSphereWSDM</deployedApplications>
<deployedApplications>isclite.ear/deployments/isclite</deployedApplications>
<deployedApplications>ibmasyncrsp.ear/deployments/ibmasyncrsp</deployedApplications>
<deployedApplications>J2EESecureChannel.ear/deployments/J2EESecureChannel</deployedApplications>
<deployedApplications>IBMUTC.ear/deployments/IBMUTC</deployedApplications>
<specialEndpoints xmi:id="NamedEndPoint_1183122129640" endPointName="BOOTSTRAP_ADDRESS">
<endPoint xmi:id="EndPoint_1183122129640" host="CNHQ-12061799T.sn.suning.ad" port="2810"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129641" endPointName="SOAP_CONNECTOR_ADDRESS">
<endPoint xmi:id="EndPoint_1183122129641" host="CNHQ-12061799T.sn.suning.ad" port="8881"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129642" endPointName="ORB_LISTENER_ADDRESS">
<endPoint xmi:id="EndPoint_1183122129642" host="CNHQ-12061799T.sn.suning.ad" port="9101"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129643" endPointName="SAS_SSL_SERVERAUTH_LISTENER_ADDRESS">
<endPoint xmi:id="EndPoint_1183122129643" host="CNHQ-12061799T.sn.suning.ad" port="9406"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129644" endPointName="CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS">
<endPoint xmi:id="EndPoint_1183122129644" host="CNHQ-12061799T.sn.suning.ad" port="9405"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129645" endPointName="CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS">
<endPoint xmi:id="EndPoint_1183122129645" host="CNHQ-12061799T.sn.suning.ad" port="9404"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129646" endPointName="WC_adminhost">
<endPoint xmi:id="EndPoint_1183122129646" host="*" port="9061"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129647" endPointName="WC_defaulthost">
<endPoint xmi:id="EndPoint_1183122129647" host="*" port="9081"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129648" endPointName="DCS_UNICAST_ADDRESS">
<endPoint xmi:id="EndPoint_1183122129648" host="*" port="9354"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129649" endPointName="WC_adminhost_secure">
<endPoint xmi:id="EndPoint_1183122129649" host="*" port="9044"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129650" endPointName="WC_defaulthost_secure">
<endPoint xmi:id="EndPoint_1183122129650" host="*" port="9444"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129651" endPointName="SIP_DEFAULTHOST">
<endPoint xmi:id="EndPoint_1183122129651" host="*" port="5063"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129652" endPointName="SIP_DEFAULTHOST_SECURE">
<endPoint xmi:id="EndPoint_1183122129652" host="*" port="5062"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129653" endPointName="SIB_ENDPOINT_ADDRESS">
<endPoint xmi:id="EndPoint_1423210716263" host="*" port="7277"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129654" endPointName="SIB_ENDPOINT_SECURE_ADDRESS">
<endPoint xmi:id="EndPoint_1423210716265" host="*" port="7287"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129655" endPointName="SIB_MQ_ENDPOINT_ADDRESS">
<endPoint xmi:id="EndPoint_1423210716267" host="*" port="5559"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129656" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS">
<endPoint xmi:id="EndPoint_1423210716269" host="*" port="5579"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_1183122129657" endPointName="IPC_CONNECTOR_ADDRESS">
<endPoint xmi:id="EndPoint_1183122129657" host="${LOCALHOST_NAME}" port="9634"/>
</specialEndpoints>
</serverEntries>
</serverindex:ServerIndex>
4.完成之后,去控制台卸载掉要卸载的应用程序,重启动server。
Websphere 手动模拟删除应用操作的更多相关文章
- php模拟数据库常用操作效果
test.php <?php header("Content-type:text/html;charset='utf8'"); error_reporting(E_ALL); ...
- 二叉排序树(BST)创建,删除,查找操作
binary search tree,中文翻译为二叉搜索树.二叉查找树或者二叉排序树.简称为BST 一:二叉搜索树的定义 他的定义与树的定义是类似的,也是一个递归的定义: 1.要么是一棵空树 2.如果 ...
- Python模拟删除字符串两边的空白
目标: 1.使用string模块的whitespace 2.删除左边.右边以及两边的空白 代码如下: [root@localhost python]# cat rmspace.py #!/usr/bi ...
- Java集合List模拟“洗牌”操作
Collection工具类为操作List集合提供了几个有用的方法: reverse().shuffle().sort().swap().rotate(). 小例子: 使用shuffle(),方法模拟洗 ...
- Gremlins.js – 模拟用户随机操作的 JS 测试库
Gremlins.js 是基于 JavaScript 编写的 Monkey 测试库,支持 Node.js 平台和浏览器中使用.Gremlins.js 随机模拟用户操作:单击窗口中的任意位置,在表格中输 ...
- mysql 查看 删除 日志操作总结(包括单独和主从mysql)
我们可以在mysql的安装目录下看到mysql的二进制日志文件,如mysql-bin.000***等,很多人都不及时的处理,导致整个硬盘被塞满也是有可能的.这些是数据库的操作日志.它记录了我们平时使用 ...
- Android与.Net交互模拟用户屏幕操作添加APN和网络4G/3G切换
前几天接到一个需求,我们的客户需要对手机网络接入点进行可用性测试,简单点说就是需要实现Android上的APN配置的添加,APN切换网络模式4G/3G/2G切换,我要调研下写个demo. 因为是要实现 ...
- 浏览器助手,请求拦截,后台模拟键鼠操作,页内嵌入JS
http://www.cnblogs.com/ /// <summary> /// 网页浏览器助手 /// 请求拦截,后台模拟键鼠操作,页内嵌入JS ...
- jQuery实现checkbox全选反选及删除等操作
1.list.html 说明:用checkbox数组Check[]存放每一行的ID值 <div id="con"> <table width="100% ...
随机推荐
- 面试官问你:MYSQL事务和隔离级别,该如何回答
一.事务 事务是由一组SQL语句组成的逻辑处理单元,是满足 ACID 特性的一组操作,可以通过 Commit 提交一个事务,也可以使用 Rollback 进行回滚.事务具有以下4个属性,通常简称为事务 ...
- Linux 僵尸进程如何处理
Linux 允许进程查询内核以获得其父进程的 PID,或者其任何子进程的执行状态.例如,进程可以创建一个子进程来执行特定的任务,然后调用诸如 wait() 这样的一些库函数检查子进程是否终止.如果子进 ...
- 【剑指Offer】19、顺时针打印矩阵
题目描述: 输入一个矩阵,按照从外向里以顺时针的顺序依次打印出每一个数字,例如,如果输入如下4 X 4矩阵: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 则依 ...
- 为什么多 TCP 连接比单 TCP 连接传输快
转自: 我观察到,客户端机器从单一服务器使用 HTTP 下载一个文件:1. 单连接下载,速度没有达到客户端网络的最大带宽:2. 多连接同时下载,传输速度有极大的提高,带宽被占满. 假设如下前提:1. ...
- 08.Web服务器-1.浏览器访问服务器显示页面的网络模型步骤解析
- sqlalchemy带条件查询相关应用
sqlalchemy带条件查询 filter_by与filter filter_by 与filter的区别: 1. filter_by只能取值= filter可以==,!=,>=,<=等多 ...
- EditorLineEnds.ttr的困扰
DELL的n年的商用机电脑硬盘坏了,措手不及. 256ssd+1tb企业级.机器快乐很多.一小步,让机器快了一大步. 但是2007出问题了,每次启动EditorLineEnds.ttr被占用.原来有那 ...
- POJ 1694 An Old Stone Game
题目: Description There is an old stone game, played on an arbitrary general tree T. The goal is to pu ...
- 0709关于mysql优化思路【何登成】
转自 http://isky000.com/database/mysql-performance-tuning-sql 优化目标 减少 IO 次数IO永远是数据库最容易瓶颈的地方,这是由数据库的职责所 ...
- eclipse实现批量修改文件的编码方式
http://blog.csdn.net/haorengoodman/article/details/38493007 在eclipse+MyEclipse环境下,打开一个jsp文件,经常发现汉字无法 ...