1. 程式人生 > >A composition unit with name **** already exists. Select a different application name.

A composition unit with name **** already exists. Select a different application name.

webshpere8.5釋出應用程式失敗。

SystemOut.log資訊:

[3/10/14 3:02:04:538 JST] 00000092 InstallSchedu I   ADMA5016I: Installation of NewPPAndBO-web_20141030_war started.
[3/10/14 3:02:04:560 JST] 00000092 wtp           W org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl containsEJBContent IWAE0068W The EJB deployment descriptor META-INF/ejb-jar.xml in library archive oscore-2.2.6.jar is ignored. The product does not process deployment descriptor META-INF/ejb-jar.xml in library archives. Change the path of deployment descriptor META-INF/ejb-jar.xml to WEB-INF/ejb-jar.xml.
[3/10/14 3:02:22:173 JST] 00000092 FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /opt/IBM/WebSphere/AppServer8/profiles/AppSrv01/logs/ffdc/server1_cf35286b_14.03.10_03.02.22.0495234969589493957744.txt com.ibm.ws.management.application.task.ValidateBLATask.performTask 145
[3/10/14 3:02:22:209 JST] 00000092 FfdcProvider  W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /opt/IBM/WebSphere/AppServer8/profiles/AppSrv01/logs/ffdc/server1_cf35286b_14.03.10_03.02.22.1743787684079206213869.txt com.ibm.ws.management.application.SchedulerImpl.run 328
[3/10/14 3:02:22:353 JST] 00000092 InstallSchedu I   ADMA5014E: The installation of application NewPPAndBO-web_20141030_war failed.

檢視SystemErr.log資訊:

[3/10/14 3:20:56:235 JST] 0000009c SystemErr     R com.ibm.websphere.management.exception.AdminException: A composition unit with name NewPPAndBO-web_20141030_war already exists. Select a different application name.
[3/10/14 3:20:56:236 JST] 0000009c SystemErr     R  at com.ibm.ws.management.bla.j2ee.ext.tasks.ValidateBLATask._validateBLAInstall(ValidateBLATask.java:348)
[3/10/14 3:20:56:236 JST] 0000009c SystemErr     R  at com.ibm.ws.management.bla.j2ee.ext.tasks.ValidateBLATask._performTaskAsSystem(ValidateBLATask.java:132)
[3/10/14 3:20:56:236 JST] 0000009c SystemErr     R  at com.ibm.ws.management.bla.j2ee.ext.tasks.ValidateBLATask$1.run(ValidateBLATask.java:104)
[3/10/14 3:20:56:236 JST] 0000009c SystemErr     R  at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5474)
[3/10/14 3:20:56:236 JST] 0000009c SystemErr     R  at com.ibm.ws.security.auth.ContextManagerImpl.runAsSpecified(ContextManagerImpl.java:5565)
[3/10/14 3:20:56:236 JST] 0000009c SystemErr     R  at com.ibm.ws.management.bla.j2ee.ext.tasks.ValidateBLATask.performTask(ValidateBLATask.java:101)
[3/10/14 3:20:56:236 JST] 0000009c SystemErr     R  at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:315)
[3/10/14 3:20:56:236 JST] 0000009c SystemErr     R  at java.lang.Thread.run(Thread.java:773)

執行命令刪除以前釋出的殘留:

find /opt/IBM/WebSphere/AppServer8/ -name NewPPAndBO*|xargs rm -rf

xargs是把前面查出來的作為引數傳給後面