Recently I was stuck with a chicken and Egg problem with publishing WC application on my toolkit test server, essentially it was throwing following error at publish
com.ibm.websphere.management.exception.AdminException: A composition unit with name WC already exists. Select a different application name.
Step 2
Backup and remove following directories, I just did a "Delete" instead of "Shift + delete" this way I can restore these files from my trash
Step 3
Step 4
Do a clean and publish from test server to restore the newly deployed application and you should be able to access WAS admin console now.
You would notice following error while starting cache monitor, uninstall and re-install cache monitor based on the steps from my previous blog
com.ibm.websphere.management.exception.AdminException: A composition unit with name WC already exists. Select a different application name.
I was able to find this tech link which provides steps to overcome this issue, but this tech. note is not complete and in this blog I will compliment it with few additional steps.
Step 1
Stop the test server
Backup and remove following directories, I just did a "Delete" instead of "Shift + delete" this way I can restore these files from my trash
- 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
- WCDE_installdir/wasprofile/config/cells/localhost/blas
- WCDE_installdir/wasprofile/wstemp
- WCDE_installdir/wasprofile/temp
- WCDE_installdir/wasprofile/config/temp
Step 3
Start the server and publish again, this step will only publish WC application, the technote does not talk about how to restore WAS admin console and cachemonitor application.
Step 4 is in addition to tech note.
After completing Step 4 you will be able to launch WC application, you have two options to restore the WAS admin console application and Cachemonitor.
Step 4.a
Follow these steps to Uninstall/re-install WAS admin console
Do a clean and publish from test server to restore the newly deployed application and you should be able to access WAS admin console now.
You would notice following error while starting cache monitor, uninstall and re-install cache monitor based on the steps from my previous blog
Step 4.b
An alternate to step 4.a is to restore all of the folder which were deleted in Step 2, this will restore the previous configuration.
helpfull
ReplyDelete