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.

Wednesday, May 15, 2013

WAS7- Exception when deploying EAR.


WAS7- org.apache.commons.fileupload.FileUploadException


org.apache.axis2.deployment.WarBasedAxisConfigurator <init> org.apache.commons.fileupload.FileUploadException


Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadExceptionat java.lang.Throwable.<init>(Throwable.java:80)at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:76)

Above is the exception which I was getting with my WAS7 server when deploying the war. I was so sure that there is no jar or any file missing. There was also no conflict with jars. Select 



Finally I did some hit an trail. Did some changes in application.xml (Java EE> Open WebSphere Application Server Deployment) and changed the class-loader mode to PARENT_LAST, and also set the WAR class-loader policy in the WebSphere deployment editor to ‘APPLICATION’.




and poof! my exception was gone and I was able to run my WAS7 server without any exception.


Select Java EE > Open WebSphere Application Server Deployment.

Expand the Application section. 

Thursday, April 11, 2013

Eclipse blinks and disappear

I was trying to run eclipse from every possible way, but it always disappeared after a short blink-


I also figured out java wasn't 

Sunday, February 3, 2013

Tomcat not starting from eclipse

I had problem with starting Tomcat from eclipse  Even though there is no log errors. When I launched from the command line using run.sh or starts from 'services', it seems to be working fine. But if i use eclipse (with or without app) tomcat wouldn't start and gives me 404 error.



I solved this problem by performing the following steps-

1. In Eclipse, go to the 'Servers' tab.
2. Double click on the server.
3. A configuration overview should be displayed in the main Eclipse panel.
4. Under the sub-section 'Server Locations', 
select the radio button 'Use Tomcat  Installation'. (It was 'Use workspace metadata' which was causing me  
5. Save the configuration (you should be prompted to do so anyway).
6. Restart your server, and you should find localhost:8080 works from within the Eclipse browser.
                   

Hope it helps.