IBM Support

IC92195: GERONIMO RESTFUL WEB SERVICE ISSUE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Running HATS on Geronimo 2.2 user can start, stop, deploy and
    debug to the server from RAD. User has a simple macro that goes
    to the host and fetches the screen back. From that, user creates
    an IO. From the Io, user creates the web service classes.
    
    Input_Properties.java and ...._Output_Properties.
    java as well as the main web service class, MyWebService.java
    
    User followed the directions to make a restful web service since
    he does not think one can create a restful webservice via the
    RAD WS Wizard for Geronimo, only SOAP.
    
    
    https://cwiki.apache.org/GMOxDOC22/developing-a-simple-restful-s
    ervice.html
    
    
    User can hit the web service url but gets this exception:
    
    com.ibm.hats.runtime.connmgr.ConnDiscarded: HPS5052 Cannot set
    up a
    connection to the host using the following session properties:
      {WFSharedConnection=false, screenSize=2,
    WFConnectionUniqueId=,
    WFEnabled=false, port=23, codePage=037, History=false,
    TNEnhanced=true,
    autoConnect=false, codePageKey=KEY_US, SESSION_QUIETMODE=true,
    sessionID=HodConn:#1, SSL=false, sessionType=1, host=,
    autoReconnect=false} (CONNECTION_ACTIVE)
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users running RESTful web services using     *
    *                 the Apache CXF runtime                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: When running a RESTful web service on   *
    *                      a project targeted for Geronimo, the    *
    *                      code will not be able to locate the     *
    *                      HATS files in the WAR correctly which   *
    *                      will cause errors creating the host     *
    *                      connection.                             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When trying to run a RESTful web service using the Apache CXF
    runtime, the ServletContext is not available.  When using the
    Axis engine there is an API avaiable to get the ServletContext
    dynamically at runtime; however, with CXF there is none.  As a
    result, when the web service is executed it will fail to find
    the files need run correctly.
    

Problem conclusion

  • The code, which is responsible for locating the files in the
    WAR, was modified to allow it to try to use the resources used
    by the class loader to find the paths available.  If we find
    the valid path then this can be used to try and determine the
    correct location of the resources.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC92195

  • Reported component name

    RATL HATS TOOLK

  • Reported component ID

    5724U6801

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-05-08

  • Closed date

    2013-09-25

  • Last modified date

    2013-09-25

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL HATS TOOLK

  • Fixed component ID

    5724U6801

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXKAY","label":"IBM Host Access Transformation Services"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
25 September 2013