Issue - Axis Webservice Integration with UCCX 9.0[2]

Version 1
    This document was generated from CDN thread

    Created by: Binny Mathew on 02-04-2013 05:23:02 AM
    Hi UCCX Experts, I am doing a web service integration in my current script. While doing i am using Axis 2.1.6,x [1/2] (tried with both) to create stub classes and thereby developing my client code. I am invoking the methods in my client code from my script. All works fine with UCCX 8.5 but the same scenario is not working fine with UCCX 9.0[2]. Have attached a document which gives you the detail on the entire scenario and also conatins the files/scripts i have done. Doubt there are some issues with 9.0[2]. Has anyone faced this? Any light on this would be of great help.   Rgds/Binny

    Subject: RE: Issue - Axis Webservice Integration with UCCX 9.0[2]
    Replied by: Sharik M on 02-04-2013 11:48:04 AM
    Hi Binny,           The issue here is due to conflicting Axis jar version whias our UCCX Engine also uses this jar and its not using your uploaded custom jar but the one used by engine.To make use of your custom jar  option is to execute following command through CLI “utils uccx prepend custom_classpath <your_custom_axis.jar>” on both nodes and restart engine if on HA or same in SA
     
    Regards
    Sharik Saigal M

    Subject: RE: Issue - Axis Webservice Integration with UCCX 9.0[2]
    Replied by: Binny Mathew on 03-04-2013 01:23:28 AM
    Thanks Sharik for your active response,
    But in this case how do i know which jars are conflicting?
    Is there any way to list down the jars which are getting used internally as they will not be seen in our classpath.
    And will there be any issue if i over write the Custom Axis jar with the one i am using (in this case i assume it would be axiom-api-1.2.13.jar)?
     
    Rgds/Binny

    Subject: RE: Issue - Axis Webservice Integration with UCCX 9.0[2]
    Replied by: Sharik M on 04-04-2013 07:50:55 AM
    Hi Binny,
               You need root access to UCCX Box to find the same .Here in your case  you are sure that issue is with class OMSourcedElement.class hence you can search this class in all the jars and use following 
    a)Get  pid of UCCX_EngineCfg.xml using command "ps -ef | grep -i engine"
    b)Run command "for i in `pmap <pid from step a> | grep -v anon | grep -v stack | awk '{print $4}' | grep ".jar"`; do echo "Searching $i"; jar tvf $i | grep OMSourcedElement; done" ->Here if class match with internal jar it will list the path and class name and to solve the issue prepend that perticular jar using "utils uccx prepend custom_classpath axiom-api-1.2.13.jar" as you know that this class is in axiom-api-1.2.13.jar
    You should not  overwrite but just prepend
    Note:IP central will have version of thirdparty  jars in the UCCX projectand make sure that your custom jars are of higher version before prepending without which it can lead to internal Box issue
     
    Regards
    Sharik Saigal M

    Subject: RE: Issue - Axis Webservice Integration with UCCX 9.0[2]
    Replied by: Binny Mathew on 09-04-2013 04:15:12 AM
    Thanks Sharik,
    Will test the same and revert.
    Meanwhile if anyone is struggling with issus related to WebServices with UCCX I would suggest to use wsimport [jdk 1.6] to create your stub classes rather than Axis versions. This would also reduce the pain of importing all the 67 odd jars related to Axis in the UCCX Server.
    In this way only your custom jar will be imported in the UCCX server and also will work fine,I have tested this and also am going forward with this approach. 
     
    Having said that I will prefer to use Axis with other environments where we do not have this issue of colliding jars.
     
    Rgds/Binny

    Subject: RE: Issue - Axis Webservice Integration with UCCX 9.0[2]
    Replied by: Binny Mathew on 02-05-2013 07:41:02 AM
    Sharik,
     
    I executed the prepend command with my custom jars and the same is working fine. 
     
    FYI: it was not only axiom-api-1.2.13.jar there were other jars too. As after i appended this version of axis-axiom it had issues with other jars too so i went and appended those jars as well and after that it worked fine.
    Thanks for your help.
    Rgds/Binny

    Subject: RE: Issue - Axis Webservice Integration with UCCX 9.0[2]
    Replied by: Sharik M on 07-05-2013 06:28:15 AM
    Hi Binny,
               Good to know it worked fine.
     
    Regards
    Sharik Saigal M