IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  WTX Ver11 not able to find Java classes (JEXIT)

    Posted Thu July 17, 2025 03:51 AM

    Anyone can help me on this.

    Previously WTX Ver 10 can call Java classes without issue.

    Map Rule: =VALID( JEXIT("JHelper", "getConfigProperty", "WTX_CONFIG_PATH"), FAIL("getConfigProperty: " + LASTERRORMSG()))

    Config in dtx.ini:

    [External Jar Files]
    ;
    ; Lists the names of the JAR files to be included in the CLASSPATH variable 
    ; that is passed to the Java Virtual Machine. Each entry in this section specifies 
    ; the full path of a single JAR file. Specify up to 128 JAR files.
    ;jar1=<JAR_file>
    ;jar2=<JAR_file>
    ;jarN=<JAR_file>
    jar1=C:\WTX\EXT_JAR\WTXJHelper.jar
    jar2=C:\WTX\EXT_JAR\log4j-1.2.17.jar
    jar3=C:\WTX\EXT_JAR\ojdbc8.jar
    jar4=C:\WTX\EXT_JAR\ibatis-core-3.0.jar
    jar5=C:\WTX\EXT_JAR\commons-dbcp2-2.8.0.jar
    jar6=C:\WTX\EXT_JAR\commons-pool2-2.9.0.jar
    jar7=C:\WTX\EXT_JAR\commons-logging-1.2.jar
    jar8=C:\WTX\EXT_JAR
    ;

    Now in Ver 11:

    Map rules no change.

    in config.yaml

      External Jar Files:
        #
        # Lists the names of the JAR files to be included in the CLASSPATH variable 
        # that is passed to the Java Virtual Machine. Each entry in this section specifies 
        # the full path of a single JAR file. Specify up to 128 JAR files.
        jar1: C:\WTX\EXT_JAR\WTXJHelper.jar
        jar2: C:\WTX\EXT_JAR\log4j-1.2.17.jar
        jar3: C:\WTX\EXT_JAR\ojdbc8.jar
        jar4: C:\WTX\EXT_JAR\ibatis-core-3.0.jar
        jar5: C:\WTX\EXT_JAR\commons-dbcp2-2.8.0.jar
        jar6: C:\WTX\EXT_JAR\commons-pool2-2.9.0.jar
        jar7: C:\WTX\EXT_JAR\commons-logging-1.2.jar
        # jarN: <JAR_file>
     
      External Jar Directories:
        #
        # Lists the full directory paths of the jar files to be included in the 
        # CLASSPATH variable that is passed to the Java Virtual Machine. 
        # Specify up to 128 directories.
        Dir1: C:\WTX\EXT_JAR
        # DirN: <directory>
        #
    The map rules no longer work. What could be the reason?


    ------------------------------
    NeverXP YANG
    ------------------------------


  • 2.  RE: WTX Ver11 not able to find Java classes (JEXIT)

    Posted Fri July 18, 2025 10:10 AM

    Hi 

    Please check this ini to yaml converstion tool in ITX 11 this video might help you.

    https://community.ibm.com/community/user/viewdocument/itx-1101-tech-enablement-dtxini?CommunityKey=e4917433-f91d-4969-85dd-206313686d8d&tab=librarydocuments

    Thanks

    siva



    ------------------------------
    SAMBASIVA RAO Jilludumudi
    ------------------------------



  • 3.  RE: WTX Ver11 not able to find Java classes (JEXIT)

    Posted Fri July 18, 2025 10:17 AM

    All guesses on my part, but:

    1. Since you are naming the specific jar files in the External Jar Files section, you should not also have to name the directory in the External Jar Directories.  In our java jar event for JEXIT() we are only listing the jar files.  I think you are showing that in the prior INI file you only listed the files, not the dirs.
    2. Turn on the JNI Layer Trace
      1. switch: true
      2. file: "<full file path for log>"
      3. pid: true
      4. level: 100 (for full debugging)
      5. append: false (create a new log with each Launcher start)
    3. JNI Layer Trace will have loads of information on how the Java call is being executed.
    4. yaml files are unfortunately format sensitive, unlike INI files that are much more forgiving.  Your config.yaml may have some difficult to see problem that is making it invalid.  You can validate the config.yaml by executing "flowcmdserver -v" in the config directory

    Jim



    ------------------------------
    Jim Davee
    ------------------------------