IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

External Configuration File for *.aar service archive Is Ignored

  • 1.  External Configuration File for *.aar service archive Is Ignored

    Posted Tue July 01, 2014 07:36 AM

    Hi,

    I am following the user guide to set an external configuration file for the service .aar file we have. This is because we have multiple environments and we only want to use one .aar file and have one configuration file for each environment that will override the broker node and service name detail set inside .aar file.

    I have added the below parameter in axis2.xml in the parameter section:


    This is the content to my entirex-config.xml (I’ve changed the service name and broker detail just for this post):

    <?xml version="1.0" encoding="utf-8" ?> BROKER:5552 RPC/SERV1/CALLNAT BROKER:5552 RPC/SERV1/CALLNAT true

    But it seems it is still using the broker and service name inside the .aar file.
    Have I missed something? Do I need to change anything in the web.xml that comes from the wsstack code?
    Any help you can provide is much appreciated.

    Thanks,
    Irene


    #EntireX
    #Mainframe-Integration
    #webMethods


  • 2.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 05:34 AM

    Hi Irene,

    I can’t see anything which looks wrong. Did you restart Tomcat after you changed the axis2.xml file?

    You should run a supported version and have the latest fixes applied.


    #Mainframe-Integration
    #webMethods
    #EntireX


  • 3.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 05:37 AM

    Thanks Rolfe.

    I did restart Tomcat, a few times.
    We are currently running wsstack obtained from version 8.2.2.57.101.

    Is there anything I need to change in the web.xml (original version from the package)?

    I am at a lost as to why this is not working.


    #Mainframe-Integration
    #EntireX
    #webMethods


  • 4.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 05:53 AM

    I can only guess: is the location in the parameter section correct?

    Brian also had some problems with this, but he got it working. Maybe he can comment on this.
    [url]http://tech.forums.softwareag.com/techjforum/posts/list/52237.page[/url]

    If this doesn’t help I suggest contacting support.


    #webMethods
    #EntireX
    #Mainframe-Integration


  • 5.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 06:17 AM

    I think so… I placed the entirex required parameter on this location within …/WEB-INF/conf/axis2.xml

    true true false false
    <!-- External Configuration File for Web Services overriding the config in web service archive file -->
    <parameter name="EntireX-XML-Listener">
    <parameter name="services" location="/v/global/user/proj/entirex_wsstack/config/DEV-ws-entirex-config.xml" />
    </parameter>
    <parameter name="exx-trace-propertiesfile">/v/global/user/proj/entirex_wsstack/config/entirex.trace.properties</param
    

    eter>

    I did check the other post you mentioned. But alas I’m still none the wiser as to why this is not working for me.


    #webMethods
    #EntireX
    #Mainframe-Integration


  • 6.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 06:53 AM

    Check the Web Service Stack (or Axis2) documentation about the location of the axis2.xml file.
    If you use the Common Tomcat the docu says:

    This file is located in the Software AG_directory/profiles/CTP/workspace/wsstack/repository/conf directory


    #webMethods
    #Mainframe-Integration
    #EntireX


  • 7.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 07:28 AM

    I deployed it as an exploded war file.
    I cannot find directory structure that resembles
    /profiles/CTP/workspace/wsstack/repository/conf directory


    #EntireX
    #Mainframe-Integration
    #webMethods


  • 8.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 08:07 AM

    What application server are you using? The Common Tomcat which gets installed by the Software AG installer, a stand-alone Tomcat, or something else?

    Anyway, somewhere you should have a WS-Stack\repository\conf directory.


    #webMethods
    #EntireX
    #Mainframe-Integration


  • 9.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 08:12 AM

    I am using a corporate hosted server with virtual servers utilisation allocation (built on top of Apache Tomcat server).
    The way I deploy it is by pointing it to the exploded war file location of ws-stack.

    So the axis2.xml I’ve changed is in /WEB-INF/conf/axis2.xml


    #EntireX
    #webMethods
    #Mainframe-Integration


  • 10.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 08:47 AM

    You’re right, if you have a standalone Tomcat /WEB-INF/conf/axis2.xml is the correct place of the axis2.xml file.
    I see that you have specified the exx-trace-propertiesfile parameter. If that works then the location of the axis2 file is okay.

    You can try to use a file url for the services parameter:

    What version of the entirex.jar are you using in the Tomcat?
    Just run java -jar entirex.jar.


    #EntireX
    #webMethods
    #Mainframe-Integration


  • 11.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 11:12 AM

    It looks like I’m using entirex.jar version 8.1.2.36b.
    Let me try to use the same version of entirex.jar as the ws-stack version and restart Tomcat.


    #EntireX
    #Mainframe-Integration
    #webMethods


  • 12.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 11:15 AM

    The latest fix on Empower is 8.2.2.59. You should use this one.


    #webMethods
    #Mainframe-Integration
    #EntireX


  • 13.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 11:34 AM

    Thanks Rolf. I’ll give it a go.
    Do you happen to have the download url for that entirex.jar from empower website?


    #webMethods
    #Mainframe-Integration
    #EntireX


  • 14.  RE: External Configuration File for *.aar service archive Is Ignored



  • 15.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Wed July 02, 2014 01:05 PM

    Updating the entirex.jar to the latest version worked!!!
    Awesome.

    Thanks a million for your help Rolf! You’re ace!!


    #EntireX
    #Mainframe-Integration
    #webMethods


  • 16.  RE: External Configuration File for *.aar service archive Is Ignored

    Posted Thu July 03, 2014 01:31 PM

    Hi Irene,

    Sorry I didn’t check the forums to see your post when you needed help, but I am glad you were able to resolve the issue. My issue had to do with poorly coded XML tags, but once that was fixed it worked like a charm. We were already using a version of WSStack that had the fix to your issue.

    I had other issues when I first started that were resolved by applying the latest fix. I think as a general rule this is a good thing to do with this product - consistently apply the latest fixes for WSStack and Designer.

    Regds,

    Brian


    #webMethods
    #Mainframe-Integration
    #EntireX