在websphere下部署了一个java工程后,如果修改了web.xml文件,重新启动这个java工程发现websphere并没有自动加载web.xml文件,即修改后的web.xml并不起作用,除非重新把这个java工程再部署
一次,这需要花一些时间,如果是远程操作机器,上传整个jar包也是很慢的事情。
 其实这是因为websphere下的配置文件通常有两份,一份在installedApps下,另一份在
config下面,所以需要修改两个地方的web.xml文件后才能起效。这里以websphere6为例,两份配置文件的详细路径一般为
1、/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/test01Node01Cell/cms_war.ear/cms.war/WEB-INF/web.xml

2、/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/test01Node01Cell/applications/cms_war.ear/deployments/cms_war/cms.war/WEB-INF/web.xml
只要修改这两处的web.xml文件,就可以生效了。

转:http://happyqing.iteye.com/blog/2266150

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2022-01-20
  • 2021-07-24
  • 2021-07-17
  • 2022-02-22
  • 2021-09-08
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案