Friday, February 28, 2014

Unable to find custom install operation class "com.ibm.cic.agent.win32.registerUninstall.RegisterUninstall" - RAD on WIndows 7


I have been trying to update Installation Manager on Windows 7 64-bit machine but I was getting below error-



Unable to find custom install operation class "com.ibm.cic.agent.win32.registerUninstall.RegisterUninstall" for installable unit: com.ibm.cic.agent.win32.uninstaller.AddRemoveProgramIU 
java.lang.ClassNotFoundException: com.ibm.cic.agent.win32.registerUninstall.RegisterUninstall
java.net.URLClassLoader.findClass(URLClassLoader.java:493)
java.lang.ClassLoader.loadClass(ClassLoader.java:607)
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
com.ibm.cic.agent.core.commonNativeInstallAdapter.InvokeInstallOperation.loadCustomOperationClass(InvokeInstallOperation.java:175)
com.ibm.cic.agent.core.commonNativeInstallAdapter.InvokeInstallOperation.invoke(InvokeInstallOperation.java:103)
com.ibm.cic.agent.core.commonNativeInstallAdapter.InvokeInstallOperation.perform(InvokeInstallOperation.java:61)
com.ibm.cic.agent.core.AbstractInstallOperation.perform(AbstractInstallOperation.java:85)
com.ibm.cic.agent.core.InstallTransaction.performOperation(InstallTransaction.java:84)
com.ibm.cic.agent.core.InstallContext.performOperation(InstallContext.java:594)



After some R&D, I figure out four jars were missing in path C:\Program Files (x86)\IBM\Installation Manager\eclipse\lib 
Jars names are -
com.ibm.cic.agent.gdiPlus.jar
com.ibm.cic.agent.nativeAdminFixup.jar
com.ibm.cic.agent.win32.registerAgent.jar
com.ibm.cic.agent.win32.registerUninstall.jar

By placing this above jars on mentioned path, I was able to update Installation Manager.

Wednesday, February 26, 2014

"AppSrv01 is already in use. Specify another name" while profile has been deleted on Windows 7



I have deleted the profile through profile management tool and also manually going to the folder C:\Program Files (x86)\IBM\SDP\runtimes\base_v7\profiles but when I was trying to create a new profile it was giving me message "AppSrv01 is already in use. Specify another name" on Windows 7



I also tried to run the manageprofile command  
C:\Program Files (x86)\IBM\SDP\runtimes\base_v7\bin>manageprofiles.bat -delete -profileName profile_name
It through me error message:
INSTCONFFAILED: Cannot delete the profile. For more information, consult C:\Prog
ram Files (x86)\IBM\SDP\runtimes\base_v7\logs\manageprofiles\AppSrv01_delete.log

After going through with IBM website I came to know below steps and it worked perfectly fine

Before you delete a profile, stop its application server to ensure that the application server can be deleted.
You cannot delete a profile using the Profile Management Tool.


About this task

The following example attempts to delete a profile using the manageprofiles command, and then using operating system commands.

Procedure

  1. Issue the manageprofiles command to delete a profile.Substitute your profile name for the profile_name value in the following commands.
    ./manageprofiles.sh -delete 
                    -profileName profile_name
    
    manageprofiles.bat -delete 
                   -profileName profile_name
    If the command is successful, you have completed the task and can skip the remaining steps. If the command is partially successful or unsuccessful, proceed to the next step to delete the profile manually. If you receive the INSTCONFFAILED: Cannot delete profile. message, the command was unsuccessful. If the deletion is partially successful, you could receive message information similar to the following wording:
    INSTCONFPARTIALSUCCESS: The profiles no longer exist, but errors occurred. 
    For more information, consult 
    app_server_root/logs/manageprofiles/deleteAll.log.
    or
    The current user does not have sufficient permissions to detect or 
    remove services. If a service does exist, then an administrative or root user has 
    to remove it. If a service does not exist, then no further action is 
    required.
  2. Issue operating system commands to delete the profile directory.
  3. Issue the following command to remove references in the registry to deleted profiles:
    ./manageprofiles.sh -validateAndUpdateRegistry 
    
    manageprofiles.bat -validateAndUpdateRegistry
    Editing of the registry is not recommended.

Results

You have now deleted a profile.