Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2519219
  • 博文数量: 323
  • 博客积分: 10211
  • 博客等级: 上将
  • 技术积分: 4934
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-27 14:56
文章分类

全部博文(323)

文章存档

2012年(5)

2011年(3)

2010年(6)

2009年(140)

2008年(169)

分类: 系统运维

2009-12-29 16:04:22

  WAS的当前版本如下:
 
产品列表
----------------------------------------------------------------
ND                       已安装
已安装的产品
----------------------------------------------------------------
名称                       IBM WebSphere Application Server - ND
版本                       6.0.2.17
标识                       ND
 
现在需要将它升级到6.0.2.39的版本。下载pack包()、Update Installer(),然后开始安装。安装结果失败,查看日志报错如下:
(2009-12-29 14:59:36), UpdateInstaller, com.ibm.ws.install.ni.ismp.actions.InstallMaintenancePackage, err, Failed to delete: file:/C:/Program%20Files/IBM/WebSphere/AppServer/java/jre/lib/ext/PD.jar
(2009-12-29 14:59:36), UpdateInstaller, com.ibm.ws.install.ni.ismp.actions.InstallMaintenancePackage, err, Failed to delete: file:/C:/Program%20Files/IBM/WebSphere/AppServer/java/jre/lib/ext/PD.jar
(2009-12-29 14:59:36), UpdateInstaller, com.ibm.ws.install.ni.ismp.actions.InstallMaintenancePackage, err, java.io.IOException: Failed to delete: file:/C:/Program%20Files/IBM/WebSphere/AppServer/java/jre/lib/ext/PD.jar
 at com.ibm.ws.install.ni.ismp.utils.ISMPLogUtils.logException(ISMPLogUtils.java:42)
 at com.ibm.ws.install.ni.ismp.actions.InstallMaintenancePackage.execute(InstallMaintenancePackage.java:87)
 at com.installshield.wizard.RunnableWizardBeanContext.run(RunnableWizardBeanContext.java:21)
(2009-12-29 14:59:36), UpdateInstaller, com.ibm.ws.install.ni.ismp.actions.SetExitCodeAction, msg1, CWUPI0000I: EXITCODE=1
(2009-12-29 14:59:36), UpdateInstaller, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1, INSTCONFFAILED
 
手工删除确实删不掉。想重新安装提示需要恢复到原始状态。只能先卸载这个service pack,但同样也是报这个错:无法删除PD.jar。在进程管理器里kill java进程,安装的java图形界面退出,然后手工去删除PD.jar文件,这次可以成功删除。继续卸载service pack,成功卸载。卸载后视图再次安装这个pack,这次报的错又不同了,错误日志如下:
 
com.ibm.ws.install.ni.ismp.actions.PopulateUninstallableIfixList, err, java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:630)
at com.ibm.ws.install.ni.framework.maintenanceplugins.APARBackupRepositoryParser.getAllUninstallableURIsAndSortIt(APARBackupRepositoryParser.java:394)
at com.ibm.ws.install.ni.framework.maintenanceplugins.UninstallableIfixesPlugin.readBackupRepository(UninstallableIfixesPlugin.java:316)
at com.ibm.ws.install.ni.framework.maintenanceplugins.UninstallableIfixesPlugin.getUninstallableIfixesPlugin(UninstallableIfixesPlugin.java:74)
at com.ibm.ws.install.ni.ismp.actions.PopulateUninstallableIfixList.getUninstallableIfixesPlugin(PopulateUninstallableIfixList.java:161)
at com.ibm.ws.install.ni.ismp.actions.PopulateUninstallableIfixList.populateUninstallableIfixListForInstallAction(PopulateUninstallableIfixList.java:87)
at com.ibm.ws.install.ni.ismp.actions.PopulateUninstallableIfixList.execute(PopulateUninstallableIfixList.java:66)
at com.installshield.wizard.StandardWizardListener.execute(StandardWizardListener.java:123)
at com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:106)
IBM官网的解释如下:
 
Problem(Abstract)
You notice when applying a WebSphere® Commerce Fix Pack , the Update Installer fails with a NullPointerException.
 
Symptom
An exception similar to the following example is encountered:


(Jun 1, 2008 12:30:00 PM), Install,
com.ibm.ws.install.ni.ismp.actions.PopulateUninstallableIfixList, err, java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:630)
at com.ibm.ws.install.ni.framework.maintenanceplugins.APARBackupRepositoryParser.getAllUninstallableURIsAndSortIt(APARBackupRepositoryParser.java:394)
at com.ibm.ws.install.ni.framework.maintenanceplugins.UninstallableIfixesPlugin.readBackupRepository(UninstallableIfixesPlugin.java:316)
at com.ibm.ws.install.ni.framework.maintenanceplugins.UninstallableIfixesPlugin.getUninstallableIfixesPlugin(UninstallableIfixesPlugin.java:74)
at com.ibm.ws.install.ni.ismp.actions.PopulateUninstallableIfixList.getUninstallableIfixesPlugin(PopulateUninstallableIfixList.java:161)
at com.ibm.ws.install.ni.ismp.actions.PopulateUninstallableIfixList.populateUninstallableIfixListForInstallAction(PopulateUninstallableIfixList.java:87)
at com.ibm.ws.install.ni.ismp.actions.PopulateUninstallableIfixList.execute(PopulateUninstallableIfixList.java:66)
at com.installshield.wizard.StandardWizardListener.execute(StandardWizardListener.java:123)
at com.installshield.wizard.StandardWizardListener.currentBeanChanged(StandardWizardListener.java:106)
at com.installshield.wizard.Wizard$RunThread.run(Wizard.java:1569)

 
Cause
The problem is caused by an inconsistency between the NIFStack.xml file and the corresponding .pak files on the filesystem.
 
Resolving the problem
If additional .pak files exist for the current fix pack, back up and remove these files from the directory, or add them into the NIFStack.xml. If additional .pak files are referenced in NIFStack.xml that do not exist on the filesystem, remove these entries from the NIFStack.xml. After doing so, rerun the Update Installer to apply the fix pack to the WebSphere Commerce instance or product level.

Additional information
The NIFStack.xml (located under \properties\version\update\backup) lists the iFixes (APARs) installed to the instance. When the Update Installer attempts to apply a new fix pack, it will need to find all the APARs installed, uninstall them first, then proceed with the upgrade.

The .pak files (located also under \properties\version\update\backup) are the backups taken each time an APAR was applied previously, which would allow the APAR to be uninstalled.

The NIFStack.xml should list all the .pak files that exist on the filesystem. Also, there should be no additional .pak files on the filesystem that do not exist in the NIFStack.xml. If either of these conditions are not met, the NullPointerException may result.

For example, a sample NIFStack.xml may contain these 3 APARs which are applied currently on fix pack 1:





To avoid the exception, all three of these .pak's would need to exist in the same directory:

6.0.0.1-WS-WCServer-IFIY93118.pak
6.0.0.1-WS-WCServer-IFIY94647.pak
6.0.0.1-WS-WCServer-IFIY94694.pak

If any are missing, the problem would occur.
Also, if there were another .pak in this directory, which is not listed in the NIFStack.xml, it would also cause the problem.

For example, if the above NIFStack.xml was the same, but the directory contents were:

6.0.0.1-WS-WCServer-IFIY93118.pak
6.0.0.1-WS-WCServer-IFIY94647.pak
6.0.0.1-WS-WCServer-IFIY94694.pak
6.0.0.1-WS-WCServer-IFIY96034.pak

Note that the last .pak is not listed in the NIFStack.xml.

The inconsistencies could be caused by manual cleanup of the backup directory, or restoration from one environment to another.

 
--我找了N久没有找到NIFStack.xml这个文件。最后我将\properties\version\update\backup目录下的所有文件都删除了,问题就解决了。
这次我在安装pack前将PD.jar文件给删除。结果OK了。
 
产品列表
-----------------------------------------------------------------------
ND                       已安装
已安装的产品
-----------------------------------------------------------------------
名称                       IBM WebSphere Application Server - ND
版本                       6.0.2.39
标识                       ND
构建级别                     cf390947.03
构建日期                     11/23/09
 
阅读(2499) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

hdmj2010-03-20 18:03:46