使用ANT在WebSphere中部署WAR时出错

时间:2016-06-28 10:18:42

标签: deployment websphere ear

我们正在尝试签出,构建和部署EAR文件(IBM Integration Designer开发的中介模块......但大部分类似于Java EAR文件)。在部署到WAS ND时,我收到以下错误...

[wsadmin] WASX7017E: Exception received while running file "C:\Users\INSTAL~2\AppData\Local\Temp\wsant1588202279705404612jacl"; exception information: com.ibm.ws.scripting.ScriptingException: WASX7132E: Application install for C:\Ant_Automation\ESB\MMCheckout\KY_SF1520_CPRServices_MMApplication\KY_SF1520_CPRServices_MM.ear failed: see previous messages for details.

[wsadmin] WASX7341W: No "save" was performed before the interactive scripting session exited; configuration changes will not be saved.

BUILD FAILED

C:\Ant_Automation\ESB\build.xml:124: Java returned: 105

Total time: 1 minute 53 seconds

我认为我们必须在ND部署中部署后保存配置,但我不确定如何使用ANT进行保存。

DMGR系统日志

[28-06-16 16:43:13:572 CEST] 000003ef InstallSchedu I   ADMA5016I: Installation of KY_SF1520_CPRServices_MMApp started.
[28-06-16 16:43:14:384 CEST] 000003ef Configuration I com.ibm.bpm.config.spi.ConfigurationSpi getDeploymentEnvironment Effective deployment target is WebSphere:cell=KYDevBMP02Cell01,node=KYDevBMP02CellManager01,server=dmgr
[28-06-16 16:43:14:400 CEST] 000003ef Configuration I com.ibm.bpm.config.spi.ConfigurationSpi getDeploymentEnvironment Effective deployment target is WebSphere:cell=KYDevBMP02Cell01,node=KYDevBMP02CellManager01,server=dmgr
[28-06-16 16:43:14:493 CEST] 000003ef WBIAAbstractT I com.ibm.ws.wbia.deployment.WBIAAbstractTask performTask CWLRD0101I: No WebSphere Business Integration Adapter files are found in the application KY_SF1520_CPRServices_MMApp.
[28-06-16 16:43:15:134 CEST] 000003ef Configuration I com.ibm.bpm.config.spi.ConfigurationSpi getDeploymentEnvironment Effective deployment target is WebSphere:cell=KYDevBMP02Cell01,node=KYDevBMP02CellManager01,server=dmgr
[28-06-16 16:43:15:149 CEST] 000003ef InstallSchedu I   ADMA5014E: The installation of application KY_SF1520_CPRServices_MMApp failed.

1 个答案:

答案 0 :(得分:0)

如果您正在使用,则无需保存,请查看Ant脚本示例的此链接Using Ant scripts for testing in headless WebSphere Business Process Manager

您必须在Ant控制台输出或服务器SystemOut.log中查找错误详细信息。

查看您的消息:

Effective deployment target is WebSphere:cell=KYDevBMP02Cell01,node=KYDevBMP02CellManager01,server=dmgr

这是不对的,您正在将应用程序安装到某个服务器的Cluster,但肯定不是DeploymentManager。

您必须在options任务中提供wsInstallApp来定义目标。有关详细信息,请参阅AdminApp.install command