Run wsadmin Jython scripts converted by the Jacl2Jython conversion assistant

In WebSphere Application Server v6.1, a Jython Lib library module directory is included in the x:/optionalLibraries/jython directory, where x is the installation directory of WebSphere Application Server v6.1.

In some cases, the Jacl2Jython conversion assistant converts Jacl runtime functions to use a matching library modules from the Jython Lib directory. Here is an example list of Jython Lib library modules used by the Jacl2Jython program:

  • time-based clock or after
  • regular expression based regexp or regsub
  • file-based exists, isfile, isdirectory, or glob

Given the WebSphere Application Server v6.1 now includes these Jython Lib library modules, the Jython script converted by the Jacl2Jython program requires access to these Jython library functions, in order to run. In addition when debugging the Jython script in the workbench, the debugging module, pdb.py, is used from the Jython Lib library module directory. You need to specify a local WebSphere Application Server v6.1 runtime environment for interpreting and debugging your converted Jython script.

To run the Jython script converted by the Jacl2Jython program, you have the following options:

  • A recommended option is to use the WebSphere Administrative Script Launcher.
  • A complex alternative is to transfer the scripts to the machine running the WebSphere Application Server you want to run your administrative script file against and issue the script using its administrative scripting tool, wsadmin.

 

Parent topics:

Developing Automation Scripts