---
title: "WebSphere 缓存"
author: "andongoop"
date: "2012-09-29T15:26:43Z"
tags: []
categories: ["Web前端"]
slug: "websphere"
draft: false
lastmod: "2012-09-29T15:43:38Z"
id: 1688605
url: "https://andongoop.iteye.com/blog/1688605"
---

web.xml修改如何部署

使用websphere是发现如果修改了web.xml然后上传到服务器，不能生效，即使你重启applicaton依然不生生效，如果重新部署可以生效。原来这是缓存在作怪。当你部署完application后会将web.xml缓存到如下目录 WebSphere/AppServer/profiles/AppSrv01/config/cells/MBSITAPPCell01/applications  （根据你的具体情况可能不同，但是根据这个目录你可以找到了）；找到web.xml删除即可

 

 

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/mobilebank1.war