Websphere缓存问题

一、场景:

∷∷ linux环境,通过websphere控制更新程序,但是由于业务需求,所有更新必须撤销。因此,我将对应的应用目录删除,并将备份文件重新归档;最后发现与预期效果不一样。

∷∷ 通过反复确认代码没错,最后也做了一些其他的测试,可还是没有解决问题!

  • 解决方案:

∷∷ 原来是因为,WebSphere缓存文件造成,当你部署完application后会将web.xml缓存到如下目录 :

 /app/WebSphere/AppServer/profiles/AppSrv01/config/cells/YDZYTNode01Cell/applications/......

(不适合所有系统,此处提出只为以后遇到同样问题时方便查阅);找到web.xml删除即可

特别注意:

∷∷ 以上解决方案只适用于提交更新之后对 web.xml 文件有改动的情况,如果是jsp效果与预期不一致,则需要找到以下目录:

∷∷ WebSphere jsp编译为class缓存目录

部署目录为:

/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/MBSITAPPCell01/mobilebank1_war.ear/mobilebank1.war

对应的class缓存目录为:

/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/temp/MBSITAPPNode01/server1/mobilebank1_war/mobilebank

config/cells/主机名称/applications/根.ear/deployments/根_war/根.war/WEB-INF/web.xml

如:

/app/WebSphere/AppServer/profiles/AppSrv01/config/cells/YDZYTNode01Cell/applications/...


转:https://www.tuicool.com/wx/bu2aym
posted @ 2022-07-01 10:28  tigergaonotes  阅读(407)  评论(0编辑  收藏  举报