Saturday 31 October 2015

Caused by: com.ibm.wsspi.management.bla.op.OpExecutionException: CWWMH0121E: Could not read configuration data for composition unit

Hello Everyone

We always think that installation/UnInstalltion and deletion of Websphere Application server  is easy task. It's just a thing like click on next button for some time and you are done with the work. But it is always not easy as we think. Today I was trying to delete one JVM from my Websphere Application server v8.5.0.0 ND environment and I was not able to delete it from the console. Then I tried the same thing using wsadmin tool but still getting some errors. When I was checking the logs I found bello errors in SystemOut.log. While resolving issue I came to know very interesting facts which I have noted down below.

Error :

Caused by: com.ibm.wsspi.management.bla.op.OpExecutionException: CWWMH0121E: Could not read configuration data for composition unit "WebSphere:cuname=<Application Name>,cuedition=BASE". Error data: com.ibm.wsspi.management.bla.op.OpExecutionException: Enterprise application data for composition unit "WebSphere:cuname=<Application_Name>,cuedition=BASE" could not be read. at com.ibm.ws.management.bla.model.CompositionUnitConfig.read(CompositionUnitConfig.java:293)

Cause: 

In my case I have deleted all the applications installed on the JVM which I want to delete and then try to delete that JVM. But as you can seen in above error it was saying that some application are still pointed to the JVMs which are not uninstall. But I never install these applications on my JVM may be did installed on some other JVMs in same domain but before some time, but currently these applications are not installed on any of the JVM in my domain. And when I search for the reason I came to know that when I install an application there are some folders in configuration which keep a track of these folders. These folders are as below.

WAS_INSTALL/profiles/ProfileName/installedApp/Cell_Name/
WAS_INSTALL/profiles/ProfileName/config/cells/Cell_Name/applications
WAS_INSTALL/profiles/ProfileName/config/cells/Cell_Name/applications/blas 
WAS_INSTALL/profiles/ProfileName/config/cells/Cell_Name/applications/cus 

When you delete the application the entries of application should be remove from the all these folders otherwise it will cause the error which we are facing. Most of the times the application entries are there in /blas and /cus folders.

We can solve this issue using below solution.

Resolution 


Perform the following procedure
  1. Login to the WebSphere console and list down all the applications with exact version information which are currently install .
  2. Stop the DeploymentManager/Adminagent
  3. Go to the below listed folders location and delete all the listed application directories other than you noted down from admin console. WAS_INSTALL/profiles/ProfileName/installedApp/Cell_Name/ WAS_INSTALL/profiles/ProfileName/config/cells/Cell_Name/applications WAS_INSTALL/profiles/ProfileName/config/cells/Cell_Name/applications/blas  WAS_INSTALL/profiles/ProfileName/config/cells/Cell_Name/applications/cus 
  4. Stop the DeploymentManager/Adminagent
  5. Log back into the Admin Console
  6. Perform a 'Full Resynchronize' operation on all nodes using the Admin Console
  7. After re-sync fully completes for all nodes, attempt to delete the JVM/Cluster again using the Administrative Console, or the wsadmin utility
Hope this will help you. Kindly comment for your suggestion and quires.  

"Effort only fully releases its reward after a person refuses to quit.”

 Regards,
 Akhilesh B. Humbe

Popular Posts