在websphere(6.1)上更新.ear文件仍然运行旧代码 [英] Updating .ear file on websphere (6.1) still runs old code

查看:290
本文介绍了在websphere(6.1)上更新.ear文件仍然运行旧代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于在websphere应用服务器上更新应用程序的问题。该应用程序已经启动并运行,我只想更新打包在.ear文件中的代码。以下是我认为应该做的事情:

I have a question regarding updating a application on websphere application server. The application is already up and running and I just want to update the code which is packaged in a .ear file. Here is what I thought I should do:


  1. 停止应用程序服务器。

  2. 转到我的企业应用程序,选择我要更新的那个,然后单击更新。

  3. 指向我的.ear文件替换整个应用程序单选按钮选项。

  4. 重新启动我的应用程序服务器。

  1. stop the application server.
  2. go to my enterprise application, select the one I am updating, and click update.
  3. point to my .ear file in replace the entire application radio button option.
  4. restart my application server.

执行此操作并尝试我的应用程序后,它仍然运行旧代码,这让我真的困惑。我设法让它工作的唯一方法是使用WinSCP,手动直接转到单元格/ installedapps并替换整个.ear文件夹。我不认为这是一个可行的解决方案。

After doing this and trying out my application, it is still running the old code, which makes me really confused. The only way I managed to get it to work is to use WinSCP, manually go to the cell directly/installedapps and replace the whole .ear folder. I dont think this a viable solution moving forward.

推荐答案

要更新现有的企业应用程序,我们不必停止应用程序,因为WAS在更新代码之前停止应用程序。

To update existing enterprise application we do not have to stop the application since WAS stops the application before updating the code .

根据您提供的更新,我假设这是一个网络部署管理器设置,因此可能是在更新应用程序并保存后没有发生同步问题。

Based on the update you gave i am assuming this is a network deployment manager setup , so possibly problem is with sync is not taking place after updating the app and save .

您是否在应用程序更新后明确调用同步操作?如果没有,我会建议。

Are you explicitly invoking sync operation after application update ? If not , i would recommend that.

仍然存在问题然后很可能是因为nodeagent进程没有调用app扩展到installedApps文件夹但你可以快速查看在nodeagent systemout.log文件或ffdc文件中查看是否有关于扩展过程的任何线索。

Still problem persists then most likely for what ever reason nodeagent process is not invoking app expansion into installedApps folder but you can take a quick look at nodeagent systemout.log file or ffdc files to see if there is any clue about expansion process.

作为解决方法,您还可以使用EARExapnder.sh/bat工具available / profile_home / bin目录,当应用程序在config / cells / cell_name / applications中真正更新但未在installedApps文件夹下更新时,将应用程序扩展到installedApps。

As a work-around you can also use EARExapnder.sh/bat tool available /profile_home/bin directory to expand the application into installedApps when the app is really updated in config/cells/cell_name/applications but not under installedApps folder.

我希望这样帮助。
谢谢
VT
这些意见是我自己的。

I hope this helps. Thanks VT These opinions are my own.

这篇关于在websphere(6.1)上更新.ear文件仍然运行旧代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆