Welcome to the IBM Websphere Commerce Hub


Welcome to the IBM Websphere Commerce Hub

Come join me in my journey to explore the various features and capabilities of IBM Websphere Commerce and understand how retailers can benefit from its really cool out-of-box functionality.

Thursday, March 15, 2012

RESOLVED : Application Failed to Install. WC

WC application does not publish in WCS 7 toolkit and you see the below error -

com.ibm.websphere.management.exception.AdminException: A composition unit with name WC already exists. Select a different application name.

Dont worry .. the following steps will help you. I have tried it myself and it works :)

Problem(Abstract)

You are unable to publish an IBM WebSphere Commerce application to the integrated test server environment.

Symptom

The following error message is received when attempting to publish the WebSphere Commerce application in WebSphere Commerce Developer 7.0:
Application Failed to Install. WC


[10/6/10 16:31:39:541 EDT] 00000025 SystemErr R com.ibm.websphere.management.exception.AdminException: A composition unit with name WC already exists. Select a different application name.
[10/6/10 16:31:39:541 EDT] 00000025 SystemErr R at com.ibm.ws.management.application.task.
ValidateBLATask._validateBLAInstall(ValidateBLATask.java:344)
[10/6/10 16:31:39:541 EDT] 00000025 SystemErr R at com.ibm.ws.management.application.task.
ValidateBLATask._performTaskAsSystem(ValidateBLATask.java:128)
[10/6/10 16:31:39:541 EDT] 00000025 SystemErr R at com.ibm.ws.management.application.task.
ValidateBLATask$1.run(ValidateBLATask.java:100)
[10/6/10 16:31:39:541 EDT] 00000025 SystemErr R at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4389)
[10/6/10 16:31:39:541 EDT] 00000025 SystemErr R at com.ibm.ws.security.auth.ContextManagerImpl.runAsSpecified(ContextManagerImpl.java:4547)
[10/6/10 16:31:39:541 EDT] 00000025 SystemErr R at com.ibm.ws.management.application.task.ValidateBLATask.performTask(ValidateBLATask.java:97)
[10/6/10 16:31:39:541 EDT] 00000025 SystemErr R at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:284)
[10/6/10 16:31:39:541 EDT] 00000025 SystemErr R at java.lang.Thread.run(Thread.java:735)

Cause

A previous failed application update has corrupted the applications configuration information.

 Resolving the problem

Perform the following steps to resolve this issue:

1. Stop the server

2. Backup and remove the following directories:
- WCDE_installdir/wasprofile/config/cells/localhost/cus
- WCDE_installdir/wasprofile/config/cells/localhost/blas
- WCDE_installdir/wasprofile/wstemp
- WCDE_installdir/wasprofile/temp
- WCDE_installdir/wasprofile/config/temp
3. Start the server

4. Publish the WebSphere Commerce application.

The above steps clears corrupted server configurations and allows for the publish action to run properly.

Important Note 

It is important that you keep a backup of the directories listed above since you may run into issues like few applications such as WAS Admin Console may not be accessible. If you face the same issue, please refer to the steps provided in my post - RESOLVED : Unable to access WAS Admin Console 

Alternatively , try just removing the module which is causing problem during publishing - WC



No comments:

Post a Comment