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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Usage of Pub java classes in 10.11

  • 1.  Usage of Pub java classes in 10.11

    Posted Thu December 16, 2021 04:04 AM

    Hello,

    I tried to use a java class from package WmPub in 10.11 after an update to the new version.
    In our previous Version 10.5 it works quite well. With any doubts.

    […]
    import pub.CommonUtils;
    […]

    […]
    //Return sessionKey |
    |—|—|—|
    CommonUtils.mergeOutput(dataCursor, sessionKey, sessionKey); |
    […]

    The complier says:
    […]
    The source was saved, but was not compiled due to the following errors:

    /opt/softwareag111/IntegrationServer/instances/default/packages/Default/code/source/test.java:21: error: package pub does not exist
    import pub.CommonUtils;
    ^
    1 error
    […]

    Did anyone have a solution for that?

    Cheers,
    Nils


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Usage of Pub java classes in 10.11

    Posted Mon February 14, 2022 11:54 PM

    Hi,

    Ideally the package classes are isolated. Could you please double check whether pub.CommonUtils was present somewhere else in the classpath in the previous version? May be you could just enable the verbose class loading and check from where the class was loaded in version 10.5?

    Thanks


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB