Application Deployment [Admin Exception: A composition unit with the name already exists]

0 comments



Problem Statement

Following error log is generated when you try to deploy an application to Websphere portal/app server. It could happen if someone tried to manually replace the EAR folder under profile root/config/cells.The key to this error is the message: "A composition unit with name PA_myApp already exists. Select a different application name." This implies that the application is already deployed, at least partially, in the WAS configuration.
[3/20/13 15:07:15:445 IST] 00000048 SystemErr R com.ibm.websphere.management.exception.AdminException: A composition unit with name PA_myApp already exists. Select a different application name.
[3/20/13 15:07:15:445 IST] 00000048 SystemErr R at com.ibm.ws.management.bla.j2ee.ext.tasks.ValidateBLATask._validateBLAInstall(ValidateBLATask.java:348)

Solution

To resolve the problem, follow these steps

1. Check the following locations to see if the app directories exist:

<profile root>/config/cells/cellname/applications/PA_myApp
<profile root>/config/cells/cellname/blas/PA_myApp
<profile root>/config/cells/cellname/cus/PA_myApp

Remove any of the directories you see, where "PA_myApp" is your application name.

2. If in a cluster, check the DMGR as well in the same locations.
3. Clear the contents of the profile/wstemp directory (and on the DMGR as well if in a cluster).
4. Restart the Portal Server (and DMGR if clustered) and reattempt the deployment.

No comments:

Post a Comment

Recent Posts

Popular Posts

© 2011-2019 Web Portal Club