当我尝试使用部署API部署EAR文件时,我得到以下异常:
在SystemOut.log中:
[6/23/16 16:26:16:894 IST] 00000091 HttpConnectio E HttpConnection.run: java.lang.IllegalStateException: 0 response bytes written, but Content-Length header equals 1974
[6/23/16 16:26:16:895 IST] 000000c0 InstallSchedu I ADMA5014E: The installation of application testDeploy failed.
在SystemErr.log中:
[6/23/16 16:26:16:890 IST] 000000c0 SystemErr R javax.management.MalformedObjectNameException: Unterminated key property part
[6/23/16 16:26:16:891 IST] 000000c0 SystemErr R at javax.management.ObjectName.construct(ObjectName.java:568)
[6/23/16 16:26:16:891 IST] 000000c0 SystemErr R at javax.management.ObjectName.<init>(ObjectName.java:1394)
[6/23/16 16:26:16:891 IST] 000000c0 SystemErr R at com.ibm.ws.management.application.InstallSchedulerImpl.updateAppAndCellName(InstallSchedulerImpl.java:447)
[6/23/16 16:26:16:891 IST] 000000c0 SystemErr R at com.ibm.ws.management.application.InstallSchedulerImpl.setupTasks(InstallSchedulerImpl.java:243)
[6/23/16 16:26:16:891 IST] 000000c0 SystemErr R at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:303)
[6/23/16 16:26:16:891 IST] 000000c0 SystemErr R at java.lang.Thread.run(Thread.java:798)
如何解决此问题?
谢谢,kusuma
答案 0 :(得分:0)
尝试部署多个war文件,这取决于状态是否已启动已部署的应用程序。
解决了忽略应用程序启动的问题
try{
if (getDeployementStatus(updateStatus(listener), true).isDeployed()) {
startApplication(artifact.getAppName(), preferences);
}
}catch(Exception e){
LOGGER.error("error in creating listener for deploy", e);
return updateStatus(DeployStatus.start_application_failed.name());
}
谢谢, 库苏马