IBM Support

JR25718: ENCOUNTER SETUPENV.BAT ERROR WHEN RUNNING WSDL2WEBSERVICE.BAT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When running WSDL2WebService.bat, customer encounter the
    following error:
       '"\setupenv.bat"' is not recognized as an internal or
    external
    command, operable program or batch file.
       The java class is not found:
    com.ibm.wsdk.delegate.DelegateClass
    
    
    - this can be reproduced running WSDL2WebService.bat on command
    prompt or using an Ant script.
    - a testfix is confirmed by Troy
    

Local fix

  • Michelle,
    
    This looks like a problem in the batch files provided in the
    <RAD
    Install>\bin directory.  The recommended way is to call
    setupenv.bat
    first and then the batch file you want to call, however calling
    the tool
    batch file directly *should* work.  Please open an AST 6.1 APAR
    for this
    problem and I will look to get it fixed for RAD 7.0.0.2.
    
    For now, the customer can manually fix this problem by changing
    the
    wsdl2webservice.bat file.
    
    Right now, the script contains the following section:
    ...
    
    IF "%IBM_RAD_BIN%" == "" call "%~dp0\setupenv.bat"
    
    set AST_DIR=%IBM_RAD_BIN%..\eclipse
    
    set WAS_HOME=%IBM_RAD_BIN%..\runtimes\base_v%server%_stub
    
    
    ...
    
    the first line above (that starts with the IF) should be moved
    to the
    top if the script, i.e.:
    
    @echo off
    SETLOCAL
    
    set server=
    set j2ee=
    set classPath=
    set project=
    set CURDIR=
    
    IF "%IBM_RAD_BIN%" == "" call "%~dp0\setupenv.bat"
    
    doing this will fix the problem.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of the webservice command-line     *
    *                 tools in Rational Application Developer      *
    *                 version 7.0.                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: When running the webservice             *
    *                      command-line tools an error occurs      *
    *                      with running the setupenv.bat file on   *
    *                      Microsoft Windows Operating System.     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The webservice command-line tools were calling the
    setupenv.bat file incorrectly and therefore fail to locate it
    properly resulting in an error message such as:
    
    '"\setupenv.bat"' is not recognized as an internal or external
    command, operable program or batch file.
    The java class is not found:
    com.ibm.wsdk.delegate.DelegateClass
    

Problem conclusion

  • The batch files for Windows will be updated for Rational
    Application Developer version 7.0.0.2 so that they correctly
    call the setupenv.bat file automatically.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR25718

  • Reported component name

    APP SER TOOLKIT

  • Reported component ID

    5724D1420

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-01-12

  • Closed date

    2007-01-18

  • Last modified date

    2007-01-18

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

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

Modules/Macros

  • AST
    

Fix information

  • Fixed component name

    WEBAPP SERVER A

  • Fixed component ID

    5724J0820

Applicable component levels

  • R610 PSY

       UP

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1"}]

Document Information

Modified date:
06 October 2021